Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
1.2.1, 1.3.0
-
None
-
None
Description
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:
/** * 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; }