use of org.apache.tez.mapreduce.hadoop.mapreduce.JobContextImpl in project tez by apache.
the class MRTask method initTask.
public void initTask(LogicalOutput output) throws IOException, InterruptedException {
// By this time output has been initialized
this.output = output;
if (output instanceof MROutputLegacy) {
committer = ((MROutputLegacy) output).getOutputCommitter();
}
this.mrReporter = new MRTaskReporter(processorContext);
this.useNewApi = jobConf.getUseNewMapper();
TezDAGID dagId = IDConverter.fromMRTaskAttemptId(taskAttemptId).getTaskID().getVertexID().getDAGId();
this.jobContext = new JobContextImpl(jobConf, dagId, mrReporter);
this.taskAttemptContext = new TaskAttemptContextImpl(jobConf, taskAttemptId, mrReporter);
localizeConfiguration(jobConf);
}
Aggregations