hadoop-mapreduce-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Lowe (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (MAPREDUCE-4689) JobClient.getMapTaskReports on failed job results in NPE
Date Wed, 26 Sep 2012 23:09:07 GMT

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

Jason Lowe commented on MAPREDUCE-4689:
---------------------------------------

The call appears to be fine while the failing job is up and running, but once it moves to
the historyserver then it results in the NPE.  Apparently the historyserver is returning null
for the task Counters when the task has failed, and the client isn't prepared to handle that.
                
> JobClient.getMapTaskReports on failed job results in NPE
> --------------------------------------------------------
>
>                 Key: MAPREDUCE-4689
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4689
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>          Components: client
>    Affects Versions: 0.23.3
>            Reporter: Jason Lowe
>
> When calling JobClient.getMapTaskReports for a job that has failed results in an NPE.
 For example:
> {noformat}
> Exception in thread "main" java.lang.NullPointerException
> 	at org.apache.hadoop.mapreduce.counters.AbstractCounters.<init>(AbstractCounters.java:107)
> 	at org.apache.hadoop.mapred.Counters.<init>(Counters.java:71)
> 	at org.apache.hadoop.mapred.Counters.downgrade(Counters.java:80)
> 	at org.apache.hadoop.mapred.TaskReport.downgrade(TaskReport.java:81)
> 	at org.apache.hadoop.mapred.TaskReport.downgradeArray(TaskReport.java:88)
> 	at org.apache.hadoop.mapred.JobClient.getTaskReports(JobClient.java:691)
> 	at org.apache.hadoop.mapred.JobClient.getMapTaskReports(JobClient.java:681)
> ...
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message