[
https://issues.apache.org/jira/browse/MAPREDUCE-5682?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mark Wagner updated MAPREDUCE-5682:
-----------------------------------
Affects Version/s: 1.3.0
> Job Counters are not retrieved properly from web UI
> ---------------------------------------------------
>
> Key: MAPREDUCE-5682
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-5682
> Project: Hadoop Map/Reduce
> Issue Type: Bug
> Components: mrv1
> Affects Versions: 1.2.1, 1.3.0
> Reporter: Mark Wagner
> Assignee: Mark Wagner
> Attachments: MAPREDUCE-5682.1.patch
>
>
> After MAPREDUCE-4962, most job counters are coming back as 0 because the web
> UI retrieves them using the name instead of displayName, which is what is
> expected:
> {code}
> /**
> * Returns the value of the specified counter, or 0 if the counter does
> * not exist.
> */
> public synchronized long getCounter(String counterName) {
> for(Counter counter: subcounters.values()) {
> if (counter != null && counter.getDisplayName().equals(counterName)) {
> return counter.getValue();
> }
> }
> return 0L;
> }{code}
--
This message was sent by Atlassian JIRA
(v6.1.4#6159)