MAPREDUCE-3678. The Map tasks logs should have the value of input split it processed. Contributed by Harsh J. (harsh)

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2@1396034 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Harsh J 2012-10-09 13:41:45 +00:00
parent 7e55280b5b
commit 9a0f100130
2 changed files with 5 additions and 0 deletions

View File

@ -11,6 +11,9 @@ Release 2.0.3-alpha - Unreleased
IMPROVEMENTS
MAPREDUCE-3678. The Map tasks logs should have the value of input
split it processed. (harsh)
OPTIMIZATIONS
BUG FIXES

View File

@ -424,6 +424,7 @@ class MapTask extends Task {
job.setLong(JobContext.MAP_INPUT_START, fileSplit.getStart());
job.setLong(JobContext.MAP_INPUT_PATH, fileSplit.getLength());
}
LOG.info("Processing split: " + inputSplit);
}
static class NewTrackingRecordReader<K,V>
@ -694,6 +695,7 @@ class MapTask extends Task {
org.apache.hadoop.mapreduce.InputSplit split = null;
split = getSplitDetails(new Path(splitIndex.getSplitLocation()),
splitIndex.getStartOffset());
LOG.info("Processing split: " + split);
org.apache.hadoop.mapreduce.RecordReader<INKEY,INVALUE> input =
new NewTrackingRecordReader<INKEY,INVALUE>