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 07:29:20 GMT
Repository: hadoop
Updated Branches:
  refs/heads/trunk b6d8f87b8 -> 61bbdc511


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


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

Branch: refs/heads/trunk
Commit: 61bbdc511e4e98c11a05d7c3bc01f3e971adbe13
Parents: b6d8f87
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 12:58:38 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/61bbdc51/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 f9bd30b..730f4ee 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
@@ -1174,6 +1174,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