org.apache.pig.impl.logicalLayer.FrontendException: ERROR 2042: Error in new logical plan. Try -Dpig.usenewlogicalplan=false.

incubator-hcatalog-user | Subroto sanyal | 5 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    RE: Data Loding in HCatalog using PIG

    incubator-hcatalog-user | 5 years ago | Subroto sanyal
    org.apache.pig.impl.logicalLayer.FrontendException: ERROR 2042: Error in new logical plan. Try -Dpig.usenewlogicalplan=false.
  2. 0

    RE: Data Loding in HCatalog using PIG

    incubator-hcatalog-user | 5 years ago | Subroto sanyal
    org.apache.pig.impl.logicalLayer.FrontendException: ERROR 2042: Error in new logical plan. Try -Dpig.usenewlogicalplan=false.

    Root Cause Analysis

    1. org.apache.pig.impl.logicalLayer.FrontendException

      ERROR 1115: Column name for a field is not specified. Please provide the full schema as an argument to HCatStorer.

      at org.apache.hcatalog.pig.HCatBaseStorer.validateAlias()
    2. org.apache.hcatalog
      HCatStorer.setStoreLocation
      1. org.apache.hcatalog.pig.HCatBaseStorer.validateAlias(HCatBaseStorer.java:410)
      2. org.apache.hcatalog.pig.HCatBaseStorer.doSchemaValidations(HCatBaseStorer.java:328)
      3. org.apache.hcatalog.pig.HCatStorer.setStoreLocation(HCatStorer.java:105)
      3 frames
    3. org.apache.pig
      Main.main
      1. org.apache.pig.newplan.logical.rules.InputOutputFileValidator$InputOutputFileVisitor.visit(InputOutputFileValidator.java:75)
      2. org.apache.pig.newplan.logical.relational.LOStore.accept(LOStore.java:76)
      3. org.apache.pig.newplan.DepthFirstWalker.depthFirst(DepthFirstWalker.java:64)
      4. org.apache.pig.newplan.DepthFirstWalker.depthFirst(DepthFirstWalker.java:66)
      5. org.apache.pig.newplan.DepthFirstWalker.depthFirst(DepthFirstWalker.java:66)
      6. org.apache.pig.newplan.DepthFirstWalker.walk(DepthFirstWalker.java:53)
      7. org.apache.pig.newplan.PlanVisitor.visit(PlanVisitor.java:50)
      8. org.apache.pig.newplan.logical.rules.InputOutputFileValidator.validate(InputOutputFileValidator.java:52)
      9. org.apache.pig.backend.hadoop.executionengine.HExecutionEngine.compile(HExecutionEngine.java:292)
      10. org.apache.pig.PigServer.compilePp(PigServer.java:1365)
      11. org.apache.pig.PigServer.executeCompiledLogicalPlan(PigServer.java:1207)
      12. org.apache.pig.PigServer.execute(PigServer.java:1201)
      13. org.apache.pig.PigServer.access$100(PigServer.java:129)
      14. org.apache.pig.PigServer$Graph.execute(PigServer.java:1528)
      15. org.apache.pig.PigServer.executeBatchEx(PigServer.java:373)
      16. org.apache.pig.PigServer.executeBatch(PigServer.java:340)
      17. org.apache.pig.tools.grunt.GruntParser.executeBatch(GruntParser.java:115)
      18. org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:172)
      19. org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:144)
      20. org.apache.pig.tools.grunt.Grunt.exec(Grunt.java:90)
      21. org.apache.pig.Main.run(Main.java:500)
      22. org.apache.pig.Main.main(Main.java:107)
      22 frames