hadoop-pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hc busy <hc.b...@gmail.com>
Subject need help again, what causes "Cannot cast to Unknown" ?
Date Tue, 04 May 2010 06:30:08 GMT
Hey, guys, I managed to generate another horrendous error message (before
the plan completes). What typically causes this error to happen?

The script survives through all describes. (I can describe after all
assignments to aliases), but it still produces this error.

(running pit 0.5 on hadoop .20)

2010-05-03 22:54:22,054 [main] ERROR org.apache.pig.tools.grunt.Grunt -
ERROR 1051: Cannot cast to Unknown
2010-05-03 22:54:22,054 [main] ERROR org.apache.pig.tools.grunt.Grunt -
org.apache.pig.impl.plan.PlanValidationException: ERROR 0: An unexpected
exception caused the validation to stop
        at
org.apache.pig.impl.plan.PlanValidator.validateSkipCollectException(PlanValidator.java:104)
        at
org.apache.pig.impl.logicalLayer.validators.TypeCheckingValidator.validate(TypeCheckingValidator.java:40)
        at
org.apache.pig.impl.logicalLayer.validators.TypeCheckingValidator.validate(TypeCheckingValidator.java:30)
        at
org.apache.pig.impl.logicalLayer.validators.LogicalPlanValidationExecutor.validate(LogicalPlanValidationExecutor.java:83)
        at org.apache.pig.PigServer.compileLp(PigServer.java:818)
        at org.apache.pig.PigServer.compileLp(PigServer.java:789)
        at org.apache.pig.PigServer.execute(PigServer.java:758)
        at org.apache.pig.PigServer.access$100(PigServer.java:89)
        at org.apache.pig.PigServer$Graph.execute(PigServer.java:947)
        at org.apache.pig.PigServer.executeBatch(PigServer.java:249)
        at
org.apache.pig.tools.grunt.GruntParser.executeBatch(GruntParser.java:115)
        at
org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:172)
        at
org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:144)
        at org.apache.pig.tools.grunt.Grunt.exec(Grunt.java:89)
        at org.apache.pig.Main.main(Main.java:320)
Caused by: org.apache.pig.impl.logicalLayer.validators.TypeCheckerException:
ERROR 1060: Cannot resolve Join output schema
        at
org.apache.pig.impl.logicalLayer.validators.TypeCheckingVisitor.visit(TypeCheckingVisitor.java:2360)
        at org.apache.pig.impl.logicalLayer.LOJoin.visit(LOJoin.java:201)
        at org.apache.pig.impl.logicalLayer.LOJoin.visit(LOJoin.java:45)
        at
org.apache.pig.impl.plan.DependencyOrderWalker.walk(DependencyOrderWalker.java:68)
        at org.apache.pig.impl.plan.PlanVisitor.visit(PlanVisitor.java:51)
        at
org.apache.pig.impl.plan.PlanValidator.validateSkipCollectException(PlanValidator.java:101)
        ... 14 more
Caused by: org.apache.pig.impl.logicalLayer.validators.TypeCheckerException:
ERROR 1051: Cannot cast to Unknown
        at
org.apache.pig.impl.logicalLayer.validators.TypeCheckingVisitor.insertAtomicCastForJoinInnerPlan(TypeCheckingVisitor.java:2544)
        at
org.apache.pig.impl.logicalLayer.validators.TypeCheckingVisitor.visit(TypeCheckingVisitor.java:2348)
        ... 19 more

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message