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

This commit is contained in:
Naganarasimha 2017-11-06 12:58:38 +05:30
parent b6d8f87b8e
commit 61bbdc511e

View File

@ -1174,6 +1174,18 @@ public void done(TaskUmbilicalProtocol umbilical,
sendLastUpdate(umbilical); sendLastUpdate(umbilical);
//signal the tasktracker that we are done //signal the tasktracker that we are done
sendDone(umbilical); 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
* ...
*/
} }
/** /**