[
https://issues.apache.org/jira/browse/MAPREDUCE-5729?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Karthik Kambatla updated MAPREDUCE-5729:
----------------------------------------
Attachment: mr-5729-1.patch
NotRunningJob has a null ApplicationResourceUsageReport leading to this NPE.
The patch checks for null, adds a test that fails without the fix. Also,
verified it on a pseudo-dist cluster with and without the patch.
> mapred job -list throws NPE
> ---------------------------
>
> Key: MAPREDUCE-5729
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-5729
> Project: Hadoop Map/Reduce
> Issue Type: Bug
> Components: mrv2
> Affects Versions: 2.2.0
> Reporter: Karthik Kambatla
> Assignee: Karthik Kambatla
> Priority: Critical
> Attachments: mr-5729-1.patch
>
>
> mapred job -list throws the following NPE:
> {noformat}
> Exception in thread "main" java.lang.NullPointerException
> at
> org.apache.hadoop.mapreduce.TypeConverter.fromYarn(TypeConverter.java:445)
> at
> org.apache.hadoop.mapreduce.TypeConverter.fromYarnApps(TypeConverter.java:460)
> at
> org.apache.hadoop.mapred.ResourceMgrDelegate.getAllJobs(ResourceMgrDelegate.java:125)
> at org.apache.hadoop.mapred.YARNRunner.getAllJobs(YARNRunner.java:164)
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)