@Checkpointable @InterfaceAudience.Public @InterfaceStability.Evolving public class PartialFileOutputCommitter extends FileOutputCommitter implements PartialOutputCommitter
OutputCommitter that commits files specified
in job output directory i.e. ${mapreduce.output.fileoutputformat.outputdir}.PENDING_DIR_NAME, SUCCEEDED_FILE_NAME, SUCCESSFUL_JOB_OUTPUT_DIR_MARKER, TEMP_DIR_NAME| Constructor and Description |
|---|
PartialFileOutputCommitter(org.apache.hadoop.fs.Path outputPath,
JobContext context) |
PartialFileOutputCommitter(org.apache.hadoop.fs.Path outputPath,
TaskAttemptContext context) |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanUpPartialOutputForTask(TaskAttemptContext context)
Remove all previously committed outputs from prior executions of this task.
|
org.apache.hadoop.fs.Path |
getCommittedTaskPath(int appAttemptId,
TaskAttemptContext context)
Compute the path where the output of a committed task is stored until the
entire job is committed for a specific application attempt.
|
abortJob, abortTask, abortTask, cleanupJob, commitJob, commitTask, commitTask, getCommittedTaskPath, getCommittedTaskPath, getJobAttemptPath, getJobAttemptPath, getJobAttemptPath, getTaskAttemptPath, getTaskAttemptPath, getWorkPath, isRecoverySupported, needsTaskCommit, needsTaskCommit, recoverTask, setupJob, setupTaskisRecoverySupportedpublic PartialFileOutputCommitter(org.apache.hadoop.fs.Path outputPath,
TaskAttemptContext context)
throws IOException
IOExceptionpublic PartialFileOutputCommitter(org.apache.hadoop.fs.Path outputPath,
JobContext context)
throws IOException
IOExceptionpublic org.apache.hadoop.fs.Path getCommittedTaskPath(int appAttemptId,
TaskAttemptContext context)
FileOutputCommittergetCommittedTaskPath in class FileOutputCommitterappAttemptId - the id of the application attempt to usecontext - the context of any task.public void cleanUpPartialOutputForTask(TaskAttemptContext context) throws IOException
PartialOutputCommittercleanUpPartialOutputForTask in interface PartialOutputCommittercontext - Context for cleaning up previously promoted output.IOException - If cleanup fails, then the state of the task my not be
well defined.Copyright © 2016 Apache Software Foundation. All Rights Reserved.