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:44:50 GMT
Repository: hadoop
Updated Branches:
  refs/heads/branch-2.7 17e7c9d8b -> 0c86dc821


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/0c86dc82
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/0c86dc82
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/0c86dc82

Branch: refs/heads/branch-2.7
Commit: 0c86dc82179c018b387d9471b3dc4dc04c331300
Parents: 17e7c9d
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 14:12:24 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/0c86dc82/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 e1bd085..88e2ae2 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
@@ -1069,6 +1069,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