this.useNewApi = this.jobConf.getUseNewMapper();
this.isMapperOutput = jobConf.getBoolean(MRConfig.IS_MAP_PROCESSOR,
false);
jobConf.setInt(MRJobConfig.APPLICATION_ATTEMPT_ID,
outputContext.getDAGAttemptNumber());
TaskAttemptID taskAttemptId = new TaskAttemptID(new TaskID(Long.toString(
outputContext.getApplicationId().getClusterTimestamp()),
outputContext.getApplicationId().getId(),
(isMapperOutput ? TaskType.MAP : TaskType.REDUCE),
outputContext.getTaskIndex()),
outputContext.getTaskAttemptNumber());