You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Alan Gates (JIRA)" <ji...@apache.org> on 2009/05/14 19:47:45 UTC

[jira] Created: (PIG-810) Scripts failing with NPE

Scripts failing with NPE
------------------------

                 Key: PIG-810
                 URL: https://issues.apache.org/jira/browse/PIG-810
             Project: Pig
          Issue Type: Bug
    Affects Versions: 0.3.0
            Reporter: Alan Gates
            Assignee: Alan Gates


Scripts such as:

{code}
a = load 'nosuchfile';
b = store a into 'bla';
{code}

are failing with

{code}
ERROR 2043: Unexpected error during execution.
org.apache.pig.backend.executionengine.ExecException: ERROR 2043: Unexpected error during execution.
        at org.apache.pig.backend.hadoop.executionengine.HExecutionEngine.execute(HExecutionEngine.java:275)
        at org.apache.pig.PigServer.executeCompiledLogicalPlan(PigServer.java:757)
        at org.apache.pig.PigServer.execute(PigServer.java:750)
        at org.apache.pig.PigServer.access$100(PigServer.java:88)
        at org.apache.pig.PigServer$Graph.execute(PigServer.java:917)
        at org.apache.pig.PigServer.executeBatch(PigServer.java:242)
        at org.apache.pig.tools.grunt.GruntParser.executeBatch(GruntParser.java:110)
        at org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:151)
        at org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:123)
        at org.apache.pig.tools.grunt.Grunt.exec(Grunt.java:88)
        at org.apache.pig.Main.main(Main.java:372)
Caused by: java.lang.NullPointerException
        at org.apache.pig.tools.pigstats.PigStats.accumulateMRStats(PigStats.java:175)
        at org.apache.pig.tools.pigstats.PigStats.accumulateStats(PigStats.java:94)
        at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.MapReduceLauncher.launchPig(MapReduceLauncher.java:148)
        at org.apache.pig.backend.hadoop.executionengine.HExecutionEngine.execute(HExecutionEngine.java:262)
        ... 10 more
{code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (PIG-810) Scripts failing with NPE

Posted by "Alan Gates (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIG-810?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alan Gates updated PIG-810:
---------------------------

    Fix Version/s: 0.3.0
           Status: Patch Available  (was: Open)

> Scripts failing with NPE
> ------------------------
>
>                 Key: PIG-810
>                 URL: https://issues.apache.org/jira/browse/PIG-810
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: 0.3.0
>            Reporter: Alan Gates
>            Assignee: Alan Gates
>             Fix For: 0.3.0
>
>         Attachments: PIG-810.patch
>
>
> Scripts such as:
> {code}
> a = load 'nosuchfile';
> b = store a into 'bla';
> {code}
> are failing with
> {code}
> ERROR 2043: Unexpected error during execution.
> org.apache.pig.backend.executionengine.ExecException: ERROR 2043: Unexpected error during execution.
>         at org.apache.pig.backend.hadoop.executionengine.HExecutionEngine.execute(HExecutionEngine.java:275)
>         at org.apache.pig.PigServer.executeCompiledLogicalPlan(PigServer.java:757)
>         at org.apache.pig.PigServer.execute(PigServer.java:750)
>         at org.apache.pig.PigServer.access$100(PigServer.java:88)
>         at org.apache.pig.PigServer$Graph.execute(PigServer.java:917)
>         at org.apache.pig.PigServer.executeBatch(PigServer.java:242)
>         at org.apache.pig.tools.grunt.GruntParser.executeBatch(GruntParser.java:110)
>         at org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:151)
>         at org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:123)
>         at org.apache.pig.tools.grunt.Grunt.exec(Grunt.java:88)
>         at org.apache.pig.Main.main(Main.java:372)
> Caused by: java.lang.NullPointerException
>         at org.apache.pig.tools.pigstats.PigStats.accumulateMRStats(PigStats.java:175)
>         at org.apache.pig.tools.pigstats.PigStats.accumulateStats(PigStats.java:94)
>         at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.MapReduceLauncher.launchPig(MapReduceLauncher.java:148)
>         at org.apache.pig.backend.hadoop.executionengine.HExecutionEngine.execute(HExecutionEngine.java:262)
>         ... 10 more
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (PIG-810) Scripts failing with NPE

Posted by "Gunther Hagleitner (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIG-810?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gunther Hagleitner updated PIG-810:
-----------------------------------

    Attachment: null_pointer.patch

Ran into the same issue. I have a similar fix, but I also added a unit test, in case you're interested.

> Scripts failing with NPE
> ------------------------
>
>                 Key: PIG-810
>                 URL: https://issues.apache.org/jira/browse/PIG-810
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: 0.3.0
>            Reporter: Alan Gates
>            Assignee: Alan Gates
>             Fix For: 0.3.0
>
>         Attachments: null_pointer.patch, PIG-810.patch
>
>
> Scripts such as:
> {code}
> a = load 'nosuchfile';
> b = store a into 'bla';
> {code}
> are failing with
> {code}
> ERROR 2043: Unexpected error during execution.
> org.apache.pig.backend.executionengine.ExecException: ERROR 2043: Unexpected error during execution.
>         at org.apache.pig.backend.hadoop.executionengine.HExecutionEngine.execute(HExecutionEngine.java:275)
>         at org.apache.pig.PigServer.executeCompiledLogicalPlan(PigServer.java:757)
>         at org.apache.pig.PigServer.execute(PigServer.java:750)
>         at org.apache.pig.PigServer.access$100(PigServer.java:88)
>         at org.apache.pig.PigServer$Graph.execute(PigServer.java:917)
>         at org.apache.pig.PigServer.executeBatch(PigServer.java:242)
>         at org.apache.pig.tools.grunt.GruntParser.executeBatch(GruntParser.java:110)
>         at org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:151)
>         at org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:123)
>         at org.apache.pig.tools.grunt.Grunt.exec(Grunt.java:88)
>         at org.apache.pig.Main.main(Main.java:372)
> Caused by: java.lang.NullPointerException
>         at org.apache.pig.tools.pigstats.PigStats.accumulateMRStats(PigStats.java:175)
>         at org.apache.pig.tools.pigstats.PigStats.accumulateStats(PigStats.java:94)
>         at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.MapReduceLauncher.launchPig(MapReduceLauncher.java:148)
>         at org.apache.pig.backend.hadoop.executionengine.HExecutionEngine.execute(HExecutionEngine.java:262)
>         ... 10 more
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (PIG-810) Scripts failing with NPE

Posted by "Alan Gates (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIG-810?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alan Gates updated PIG-810:
---------------------------

    Attachment: PIG-810.patch

> Scripts failing with NPE
> ------------------------
>
>                 Key: PIG-810
>                 URL: https://issues.apache.org/jira/browse/PIG-810
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: 0.3.0
>            Reporter: Alan Gates
>            Assignee: Alan Gates
>         Attachments: PIG-810.patch
>
>
> Scripts such as:
> {code}
> a = load 'nosuchfile';
> b = store a into 'bla';
> {code}
> are failing with
> {code}
> ERROR 2043: Unexpected error during execution.
> org.apache.pig.backend.executionengine.ExecException: ERROR 2043: Unexpected error during execution.
>         at org.apache.pig.backend.hadoop.executionengine.HExecutionEngine.execute(HExecutionEngine.java:275)
>         at org.apache.pig.PigServer.executeCompiledLogicalPlan(PigServer.java:757)
>         at org.apache.pig.PigServer.execute(PigServer.java:750)
>         at org.apache.pig.PigServer.access$100(PigServer.java:88)
>         at org.apache.pig.PigServer$Graph.execute(PigServer.java:917)
>         at org.apache.pig.PigServer.executeBatch(PigServer.java:242)
>         at org.apache.pig.tools.grunt.GruntParser.executeBatch(GruntParser.java:110)
>         at org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:151)
>         at org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:123)
>         at org.apache.pig.tools.grunt.Grunt.exec(Grunt.java:88)
>         at org.apache.pig.Main.main(Main.java:372)
> Caused by: java.lang.NullPointerException
>         at org.apache.pig.tools.pigstats.PigStats.accumulateMRStats(PigStats.java:175)
>         at org.apache.pig.tools.pigstats.PigStats.accumulateStats(PigStats.java:94)
>         at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.MapReduceLauncher.launchPig(MapReduceLauncher.java:148)
>         at org.apache.pig.backend.hadoop.executionengine.HExecutionEngine.execute(HExecutionEngine.java:262)
>         ... 10 more
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (PIG-810) Scripts failing with NPE

Posted by "Olga Natkovich (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PIG-810?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12709908#action_12709908 ] 

Olga Natkovich commented on PIG-810:
------------------------------------

+1

> Scripts failing with NPE
> ------------------------
>
>                 Key: PIG-810
>                 URL: https://issues.apache.org/jira/browse/PIG-810
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: 0.3.0
>            Reporter: Alan Gates
>            Assignee: Alan Gates
>             Fix For: 0.3.0
>
>         Attachments: null_pointer.patch, PIG-810.patch
>
>
> Scripts such as:
> {code}
> a = load 'nosuchfile';
> b = store a into 'bla';
> {code}
> are failing with
> {code}
> ERROR 2043: Unexpected error during execution.
> org.apache.pig.backend.executionengine.ExecException: ERROR 2043: Unexpected error during execution.
>         at org.apache.pig.backend.hadoop.executionengine.HExecutionEngine.execute(HExecutionEngine.java:275)
>         at org.apache.pig.PigServer.executeCompiledLogicalPlan(PigServer.java:757)
>         at org.apache.pig.PigServer.execute(PigServer.java:750)
>         at org.apache.pig.PigServer.access$100(PigServer.java:88)
>         at org.apache.pig.PigServer$Graph.execute(PigServer.java:917)
>         at org.apache.pig.PigServer.executeBatch(PigServer.java:242)
>         at org.apache.pig.tools.grunt.GruntParser.executeBatch(GruntParser.java:110)
>         at org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:151)
>         at org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:123)
>         at org.apache.pig.tools.grunt.Grunt.exec(Grunt.java:88)
>         at org.apache.pig.Main.main(Main.java:372)
> Caused by: java.lang.NullPointerException
>         at org.apache.pig.tools.pigstats.PigStats.accumulateMRStats(PigStats.java:175)
>         at org.apache.pig.tools.pigstats.PigStats.accumulateStats(PigStats.java:94)
>         at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.MapReduceLauncher.launchPig(MapReduceLauncher.java:148)
>         at org.apache.pig.backend.hadoop.executionengine.HExecutionEngine.execute(HExecutionEngine.java:262)
>         ... 10 more
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (PIG-810) Scripts failing with NPE

Posted by "Alan Gates (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIG-810?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alan Gates updated PIG-810:
---------------------------

    Resolution: Fixed
        Status: Resolved  (was: Patch Available)

Patch checked in.

> Scripts failing with NPE
> ------------------------
>
>                 Key: PIG-810
>                 URL: https://issues.apache.org/jira/browse/PIG-810
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: 0.3.0
>            Reporter: Alan Gates
>            Assignee: Alan Gates
>             Fix For: 0.3.0
>
>         Attachments: null_pointer.patch, PIG-810.patch
>
>
> Scripts such as:
> {code}
> a = load 'nosuchfile';
> b = store a into 'bla';
> {code}
> are failing with
> {code}
> ERROR 2043: Unexpected error during execution.
> org.apache.pig.backend.executionengine.ExecException: ERROR 2043: Unexpected error during execution.
>         at org.apache.pig.backend.hadoop.executionengine.HExecutionEngine.execute(HExecutionEngine.java:275)
>         at org.apache.pig.PigServer.executeCompiledLogicalPlan(PigServer.java:757)
>         at org.apache.pig.PigServer.execute(PigServer.java:750)
>         at org.apache.pig.PigServer.access$100(PigServer.java:88)
>         at org.apache.pig.PigServer$Graph.execute(PigServer.java:917)
>         at org.apache.pig.PigServer.executeBatch(PigServer.java:242)
>         at org.apache.pig.tools.grunt.GruntParser.executeBatch(GruntParser.java:110)
>         at org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:151)
>         at org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:123)
>         at org.apache.pig.tools.grunt.Grunt.exec(Grunt.java:88)
>         at org.apache.pig.Main.main(Main.java:372)
> Caused by: java.lang.NullPointerException
>         at org.apache.pig.tools.pigstats.PigStats.accumulateMRStats(PigStats.java:175)
>         at org.apache.pig.tools.pigstats.PigStats.accumulateStats(PigStats.java:94)
>         at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.MapReduceLauncher.launchPig(MapReduceLauncher.java:148)
>         at org.apache.pig.backend.hadoop.executionengine.HExecutionEngine.execute(HExecutionEngine.java:262)
>         ... 10 more
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.