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:
parent
7e55280b5b
commit
9a0f100130
|
@ -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
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue