@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}.FILEOUTPUTCOMMITTER_ALGORITHM_VERSION, FILEOUTPUTCOMMITTER_ALGORITHM_VERSION_DEFAULT, PENDING_DIR_NAME, SUCCEEDED_FILE_NAME, SUCCESSFUL_JOB_OUTPUT_DIR_MARKER, TEMP_DIR_NAME| Constructor and Description | 
|---|
| PartialFileOutputCommitter(Path outputPath,
                                                    JobContext context) | 
| PartialFileOutputCommitter(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. | 
| 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, cleanupJob, commitJob, commitTask, getCommittedTaskPath, getCommittedTaskPath, getJobAttemptPath, getJobAttemptPath, getJobAttemptPath, getTaskAttemptPath, getTaskAttemptPath, getWorkPath, isRecoverySupported, needsTaskCommit, recoverTask, setupJob, setupTaskisRecoverySupportedpublic PartialFileOutputCommitter(Path outputPath, TaskAttemptContext context) throws IOException
IOExceptionpublic PartialFileOutputCommitter(Path outputPath, JobContext context) throws IOException
IOExceptionpublic 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.