[ https://issues.apache.org/jira/browse/MAPREDUCE-1920?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12885663#action_12885663 ]
Aaron Kimball commented on MAPREDUCE-1920: ------------------------------------------ The new API seems to have an issue w.r.t. counters. Calling Job.getCounters() after the job has completed (successfully) returns null. I can see all the counters there on the JobTracker status web page. They have the correct values. But I can't access them programmatically. So, this is returning null: {code} public class Job extends JobContextImpl implements JobContext { ... public Counters getCounters() throws IOException, InterruptedException { ensureState(JobState.RUNNING); return cluster.getClient().getJobCounters(getJobID()); } } {code} This seems to work fine with the LocalJobRunner. > Job.getCounters() returns null when using a cluster > --------------------------------------------------- > > Key: MAPREDUCE-1920 > URL: https://issues.apache.org/jira/browse/MAPREDUCE-1920 > Project: Hadoop Map/Reduce > Issue Type: Bug > Affects Versions: 0.21.0 > Reporter: Aaron Kimball > Priority: Critical > > Calling Job.getCounters() after the job has completed (successfully) returns > null. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.