/** * Setup task. * * @throws IOException If failed. */ public void setup() throws IOException { if (writer != null) jobConf.getOutputCommitter().setupTask(new TaskAttemptContextImpl(jobConf, attempt)); }
baseOutputCommitter.setupTask(currTaskContext);
/** * This method implements the new interface by calling the old method. Note * that the input types are different between the new and old apis and this * is a bridge between the two. */ @Override public final void setupTask(org.apache.hadoop.mapreduce.TaskAttemptContext taskContext ) throws IOException { setupTask((TaskAttemptContext) taskContext); }
/** * This method implements the new interface by calling the old method. Note * that the input types are different between the new and old apis and this * is a bridge between the two. */ @Override public final void setupTask(org.apache.hadoop.mapreduce.TaskAttemptContext taskContext ) throws IOException { setupTask((TaskAttemptContext) taskContext); }
/** * This method implements the new interface by calling the old method. Note * that the input types are different between the new and old apis and this * is a bridge between the two. */ @Override public final void setupTask(org.apache.hadoop.mapreduce.TaskAttemptContext taskContext ) throws IOException { setupTask((TaskAttemptContext) taskContext); }
/** * This method implements the new interface by calling the old method. Note * that the input types are different between the new and old apis and this * is a bridge between the two. */ @Override public final void setupTask(org.apache.hadoop.mapreduce.TaskAttemptContext taskContext ) throws IOException { setupTask((TaskAttemptContext) taskContext); }
@Override public void setupTask(TaskAttemptContext taskContext) throws IOException { baseOutputCommitter.setupTask(taskContext); }
/** * This method implements the new interface by calling the old method. Note * that the input types are different between the new and old apis and this * is a bridge between the two. */ @Override public final void setupTask(org.apache.hadoop.mapreduce.TaskAttemptContext taskContext ) throws IOException { setupTask((TaskAttemptContext) taskContext); }
/** * This method implements the new interface by calling the old method. Note * that the input types are different between the new and old apis and this * is a bridge between the two. */ @Override public final void setupTask(org.apache.hadoop.mapreduce.TaskAttemptContext taskContext ) throws IOException { setupTask((TaskAttemptContext) taskContext); }
@Override public void setupTask(org.apache.hadoop.mapreduce.TaskAttemptContext context) throws IOException { baseCommitter.setupTask(hackTaskAttemptContext(context)); }
baseOutputCommitter.setupTask(currTaskContext);
baseOutputCommitter.setupTask(currTaskContext);
baseOutputCommitter.setupTask(currTaskContext);
baseOutputCommitter.setupTask(currTaskContext);
public void initialize(JobConf job, Reporter reporter) throws IOException { jobContext = new JobContext(job, reporter); taskContext = new TaskAttemptContext(job, taskId, reporter); if (getState() == TaskStatus.State.UNASSIGNED) { setState(TaskStatus.State.RUNNING); } OutputCommitter committer = conf.getOutputCommitter(); Path outputPath = FileOutputFormat.getOutputPath(conf); if (outputPath != null) { if ((committer instanceof FileOutputCommitter)) { FileOutputFormat.setWorkOutputPath(conf, ((FileOutputCommitter)committer).getTempTaskOutputPath(taskContext)); } else { FileOutputFormat.setWorkOutputPath(conf, outputPath); } } committer.setupTask(taskContext); }