Search in sources :

Example 1 with JobContextImpl

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);
}
Also used : JobContextImpl(org.apache.tez.mapreduce.hadoop.mapreduce.JobContextImpl) MROutputLegacy(org.apache.tez.mapreduce.output.MROutputLegacy) TaskAttemptContextImpl(org.apache.tez.mapreduce.hadoop.mapred.TaskAttemptContextImpl) TezDAGID(org.apache.tez.dag.records.TezDAGID)

Aggregations

TezDAGID (org.apache.tez.dag.records.TezDAGID)1 TaskAttemptContextImpl (org.apache.tez.mapreduce.hadoop.mapred.TaskAttemptContextImpl)1 JobContextImpl (org.apache.tez.mapreduce.hadoop.mapreduce.JobContextImpl)1 MROutputLegacy (org.apache.tez.mapreduce.output.MROutputLegacy)1