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

Weiwei Yang commented on MAPREDUCE-6762:
----------------------------------------

Attached v1 patch, including the test case to simulate this issue, and a simple 
fix to get rid of this NPE.

> ControlledJob#toString failed with NPE when job status is not successfully 
> updated
> ----------------------------------------------------------------------------------
>
>                 Key: MAPREDUCE-6762
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-6762
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>    Affects Versions: 2.7.2
>            Reporter: Weiwei Yang
>         Attachments: MAPREDUCE-6762.001.patch
>
>
> This issue was found from a cluster where Pig query occasionally failed on 
> NPE. Pig uses JobControl API to track MR job status, but sometimes Job 
> History Server failed to flush job meta files to HDFS which caused the status 
> update failed. Then we get NPE in 
> {{org.apache.hadoop.mapreduce.Job.getJobName}}. The result of this situation 
> is quite confusing: Pig query failed, job history is missing, but the job 
> status on Yarn is succeed.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: mapreduce-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: mapreduce-issues-h...@hadoop.apache.org

Reply via email to