You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mapreduce-issues@hadoop.apache.org by "Allen Wittenauer (JIRA)" <ji...@apache.org> on 2015/02/07 00:29:34 UTC
[jira] [Updated] (MAPREDUCE-6096) SummarizedJob class NPEs with
some jhist files
[ https://issues.apache.org/jira/browse/MAPREDUCE-6096?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Allen Wittenauer updated MAPREDUCE-6096:
----------------------------------------
Status: Open (was: Patch Available)
> SummarizedJob class NPEs with some jhist files
> ----------------------------------------------
>
> Key: MAPREDUCE-6096
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-6096
> Project: Hadoop Map/Reduce
> Issue Type: Bug
> Components: jobhistoryserver
> Affects Versions: trunk
> Reporter: zhangyubiao
> Labels: easyfix, patch
> Attachments: MAPREDUCE-6096-v2.patch, MAPREDUCE-6096-v3.patch, MAPREDUCE-6096.patch, job_1410427642147_0124-1411726671220-hadp-word+count-1411726696863-1-1-SUCCEEDED-default.jhist
>
>
> When I Parse the JobHistory in the HistoryFile,I use the Hadoop System's map-reduce-client-core project org.apache.hadoop.mapreduce.jobhistory.JobHistoryParser class and HistoryViewer$SummarizedJob to Parse the JobHistoryFile(Just Like job_1408862281971_489761-1410883171851_XXX.jhist)
> and it throw an Exception Just Like
> Exception in thread "pool-1-thread-1" java.lang.NullPointerException
> at org.apache.hadoop.mapreduce.jobhistory.HistoryViewer$SummarizedJob.<init>(HistoryViewer.java:626)
> at com.jd.hadoop.log.parse.ParseLogService.getJobDetail(ParseLogService.java:70)
> After I'm see the SummarizedJob class I find that attempt.getTaskStatus() is NULL , So I change the order of
> attempt.getTaskStatus().equals (TaskStatus.State.FAILED.toString()) to
> TaskStatus.State.FAILED.toString().equals(attempt.getTaskStatus())
> and it works well .
> So I wonder If we can change all attempt.getTaskStatus() after TaskStatus.State.XXX.toString() ?
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)