From 61bbdc511e4e98c11a05d7c3bc01f3e971adbe13 Mon Sep 17 00:00:00 2001 From: Naganarasimha Date: Mon, 6 Nov 2017 12:58:38 +0530 Subject: [PATCH] MAPREDUCE-6975. Logging task counters. Contributed by Prabhu Joseph. --- .../src/main/java/org/apache/hadoop/mapred/Task.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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 f9bd30bb3d..730f4ee90f 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 @@ public void done(TaskUmbilicalProtocol umbilical, 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 + * ... + */ } /**