org.apache.pig.impl.logicalLayer.FrontendException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Group key uses wrong fields (duplicate uids)
    via by David Wahler,
  • Group key uses wrong fields (duplicate uids)
    via by David Wahler,
    • org.apache.pig.impl.logicalLayer.FrontendException: ERROR 2000: Error processing rule LoadTypeCastInserter at org.apache.pig.newplan.optimizer.PlanOptimizer.optimize(PlanOptimizer.java:122) at org.apache.pig.backend.hadoop.executionengine.HExecutionEngine.compile(HExecutionEngine.java:287) at org.apache.pig.PigServer.compilePp(PigServer.java:1317) at org.apache.pig.PigServer.executeCompiledLogicalPlan(PigServer.java:1254) at org.apache.pig.PigServer.execute(PigServer.java:1246) at org.apache.pig.PigServer.executeBatch(PigServer.java:362) at org.apache.pig.tools.grunt.GruntParser.executeBatch(GruntParser.java:131) at org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:192) at org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:164) at org.apache.pig.tools.grunt.Grunt.exec(Grunt.java:84) at org.apache.pig.Main.run(Main.java:589) at org.apache.pig.Main.main(Main.java:148) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.hadoop.util.RunJar.main(RunJar.java:186) Caused by: org.apache.pig.impl.plan.PlanValidationException: ERROR 2270: Logical plan invalid state: duplicate uid in schema : first#298:chararray,second#298:chararray at org.apache.pig.newplan.logical.optimizer.SchemaResetter.validate(SchemaResetter.java:225) at org.apache.pig.newplan.logical.optimizer.SchemaResetter.visit(SchemaResetter.java:160) at org.apache.pig.newplan.logical.relational.LOUnion.accept(LOUnion.java:182) at org.apache.pig.newplan.DependencyOrderWalker.walk(DependencyOrderWalker.java:75) at org.apache.pig.newplan.PlanVisitor.visit(PlanVisitor.java:50) at org.apache.pig.newplan.logical.optimizer.SchemaPatcher.transformed(SchemaPatcher.java:43) at org.apache.pig.newplan.optimizer.PlanOptimizer.optimize(PlanOptimizer.java:113) ... 16 more
    No Bugmate found.