[ 
https://issues.apache.org/jira/browse/PIG-4967?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15436519#comment-15436519
 ] 

Xiang Li commented on PIG-4967:
-------------------------------

MAPREDUCE-6762 fixes this issue on Hadoop side. When status=null, the logic is 
changed to get job name from the super class of Job, which is JobContextImpl, 
and eventually get job name from conf.
The patch is applied into branch-2 (and trunk) of Hadoop, which will be picked 
up by the next 2.x release (maybe 2.9?). Pig currently picks up Hadoop 2.6.0 in 
trunk. I think I need to add a TODO in the pig fix to remind revisiting it 
after Pig picks up a Hadoop version with MAPREDUCE-6762 applied.

> NPE in PigJobControl.run() when job status is null
> --------------------------------------------------
>
>                 Key: PIG-4967
>                 URL: https://issues.apache.org/jira/browse/PIG-4967
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: 0.15.0
>            Reporter: Xiang Li
>            Assignee: Xiang Li
>            Priority: Critical
>             Fix For: 0.16.0
>
>         Attachments: PIG-4967-0.patch, PIG-4967-1.patch
>
>
> {code}
> [JobControl] ERROR org.apache.pig.backend.hadoop23.PigJobControl  - Error 
> while trying to run jobs.
> java.lang.NullPointerException
>       at org.apache.hadoop.mapreduce.Job.getJobName(Job.java:426)
>       at 
> org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob.toString(ControlledJob.java:93)
>       at java.lang.String.valueOf(String.java:2982)
>       at java.lang.StringBuilder.append(StringBuilder.java:131)
>       at 
> org.apache.pig.backend.hadoop23.PigJobControl.run(PigJobControl.java:182)
>       at java.lang.Thread.run(Thread.java:745)
>       at 
> org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.MapReduceLauncher$1.run(MapReduceLauncher.java:276)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to