Browse Source

MAPREDUCE-6497. Fix wrong value of JOB_FINISHED event in JobHistoryEventHandler. Contributed by Shinichi Yamashita.

(cherry picked from commit 195793c6f3e53a5c0527020477fe9c9158576f77)
Akira Ajisaka 9 years ago
parent
commit
e42f576232

+ 3 - 0
hadoop-mapreduce-project/CHANGES.txt

@@ -594,6 +594,9 @@ Release 2.6.2 - UNRELEASED
     cache files so that child processes running hadoop scripts can access these
     files. (Junping Du via vinodkv)
 
+    MAPREDUCE-6497. Fix wrong value of JOB_FINISHED event in
+    JobHistoryEventHandler. (Shinichi Yamashita via aajisaka)
+
 Release 2.6.1 - 2015-09-23
 
   INCOMPATIBLE CHANGES

+ 1 - 1
hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-app/src/main/java/org/apache/hadoop/mapreduce/jobhistory/JobHistoryEventHandler.java

@@ -826,7 +826,7 @@ public class JobHistoryEventHandler extends AbstractService
         tEvent.addEventInfo("FINISHED_MAPS", jfe.getFinishedMaps());
         tEvent.addEventInfo("FINISHED_REDUCES", jfe.getFinishedReduces());
         tEvent.addEventInfo("MAP_COUNTERS_GROUPS",
-                countersToJSON(jfe.getTotalCounters()));
+                countersToJSON(jfe.getMapCounters()));
         tEvent.addEventInfo("REDUCE_COUNTERS_GROUPS",
                 countersToJSON(jfe.getReduceCounters()));
         tEvent.addEventInfo("TOTAL_COUNTERS_GROUPS",