Uploaded image for project: 'Pig'
  1. Pig
  2. PIG-4635

NPE while running pig script in tez mode( pig 0.15 with tez 0.7)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.15.0
    • 0.16.0, 0.15.1
    • None
    • None
    • Pig: 0.15
      Tez: 0.7

    • Reviewed

    Description

      I was trying to run (attached) pig script on pig 0.15 in tez mode(with tez 0.7).
      I got following NullPointerException. I tried to send a mail to tez user mailing list and was asked to file a jira for this.
      Here is the NPE:

      5 org.apache.pig.impl.plan.VisitorException: ERROR 0: java.lang.NullPointerException
      6 at org.apache.pig.backend.hadoop.executionengine.tez.plan.optimizer.ParallelismSetter.visitTezOp(ParallelismSetter.java:201)
      7 at org.apache.pig.backend.hadoop.executionengine.tez.plan.TezOperator.visit(TezOperator.java:246)
      8 at org.apache.pig.backend.hadoop.executionengine.tez.plan.TezOperator.visit(TezOperator.java:53)
      9 at org.apache.pig.impl.plan.DependencyOrderWalker.walk(DependencyOrderWalker.java:87)
      10 at org.apache.pig.impl.plan.PlanVisitor.visit(PlanVisitor.java:46)
      11 at org.apache.pig.backend.hadoop.executionengine.tez.TezLauncher.processLoadAndParallelism(TezLauncher.java:449)
      12 at org.apache.pig.backend.hadoop.executionengine.tez.TezLauncher.launchPig(TezLauncher.java:163)
      13 at org.apache.pig.backend.hadoop.executionengine.HExecutionEngine.launchPig(HExecutionEngine.java:304)
      14 at org.apache.pig.PigServer.launchPlan(PigServer.java:1390)
      15 at org.apache.pig.PigServer.executeCompiledLogicalPlan(PigServer.java:1375)
      16 at org.apache.pig.PigServer.execute(PigServer.java:1364)
      17 at org.apache.pig.PigServer.executeBatch(PigServer.java:415)
      18 at org.apache.pig.PigServer.executeBatch(PigServer.java:398)
      19 at org.apache.pig.tools.grunt.GruntParser.executeBatch(GruntParser.java:171)
      20 at org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:234)
      21 at org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:205)
      22 at org.apache.pig.tools.grunt.Grunt.exec(Grunt.java:81)
      23 at org.apache.pig.Main.run(Main.java:502)
      24 at org.apache.pig.Main.main(Main.java:177)
      25 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      26 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      27 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      28 at java.lang.reflect.Method.invoke(Method.java:606)
      29 at org.apache.hadoop.util.RunJar.main(RunJar.java:212)
      30 Caused by: java.lang.NullPointerException
      31 at org.apache.pig.backend.hadoop.executionengine.tez.plan.optimizer.TezOperDependencyParallelismEstimator.estimateParallelism(TezOperDependencyParallelismEstimator.java:114)
      32 at org.apache.pig.backend.hadoop.executionengine.tez.plan.optimizer.ParallelismSetter.visitTezOp(ParallelismSetter.java:138)
      33 ... 23 more

      Attachments

        1. main.pig
          27 kB
          Sachin Sabbarwal
        2. properties
          3 kB
          Sachin Sabbarwal
        3. tez-site.xml
          1 kB
          Sachin Sabbarwal
        4. debug.patch
          2 kB
          Rohini Palaniswamy
        5. PIG-4635-1.patch
          3 kB
          Daniel Dai
        6. PIG-4635-2.patch
          5 kB
          Daniel Dai

        Activity

          People

            daijy Daniel Dai
            sachinsabbarwal Sachin Sabbarwal
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: