hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From naganarasimha...@apache.org
Subject hadoop git commit: MAPREDUCE-6975. Logging task counters. Contributed by Prabhu Joseph.
Date Mon, 06 Nov 2017 08:36:48 GMT
Repository: hadoop
Updated Branches:
  refs/heads/branch-2 656ab0687 -> 45e6d36e5


MAPREDUCE-6975. Logging task counters. Contributed by Prabhu Joseph.

(cherry picked from commit 61bbdc511e4e98c11a05d7c3bc01f3e971adbe13)


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/45e6d36e
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/45e6d36e
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/45e6d36e

Branch: refs/heads/branch-2
Commit: 45e6d36e5c8fe132c4f13af7784f4129420789b8
Parents: 656ab06
Author: Naganarasimha <naganarasimha_gr@apache.org>
Authored: Mon Nov 6 12:58:38 2017 +0530
Committer: Naganarasimha <naganarasimha_gr@apache.org>
Committed: Mon Nov 6 13:10:41 2017 +0530

----------------------------------------------------------------------
 .../src/main/java/org/apache/hadoop/mapred/Task.java    | 12 ++++++++++++
 1 file changed, 12 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/45e6d36e/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapred/Task.java
----------------------------------------------------------------------
diff --git a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapred/Task.java
b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapred/Task.java
index d6ce7a3..b7c3fb5 100644
--- a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapred/Task.java
+++ b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapred/Task.java
@@ -1130,6 +1130,18 @@ abstract public class Task implements Writable, Configurable {
     sendLastUpdate(umbilical);
     //signal the tasktracker that we are done
     sendDone(umbilical);
+    LOG.info("Final Counters for " + taskId + ": " +
+              getCounters().toString());
+    /**
+     *   File System Counters
+     *           FILE: Number of bytes read=0
+     *           FILE: Number of bytes written=146972
+     *           ...
+     *   Map-Reduce Framework
+     *           Map output records=6
+     *           Map output records=6
+     *           ...
+     */
   }
 
   /**


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org


Mime
View raw message