Class DirectoryStagingCommitter
java.lang.Object
org.apache.hadoop.mapreduce.OutputCommitter
org.apache.hadoop.mapreduce.lib.output.PathOutputCommitter
org.apache.hadoop.fs.s3a.commit.AbstractS3ACommitter
org.apache.hadoop.fs.s3a.commit.staging.StagingCommitter
org.apache.hadoop.fs.s3a.commit.staging.DirectoryStagingCommitter
- All Implemented Interfaces:
org.apache.hadoop.fs.statistics.IOStatisticsSource
This commits to a directory.
The conflict policy is
- FAIL: fail the commit
- APPEND: add extra data to the destination.
- REPLACE: delete the destination directory in the job commit (i.e. after and only if all tasks have succeeded.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.fs.s3a.commit.AbstractS3ACommitter
AbstractS3ACommitter.ActiveCommit, AbstractS3ACommitter.JobUUIDSource -
Field Summary
FieldsFields inherited from class org.apache.hadoop.fs.s3a.commit.AbstractS3ACommitter
E_SELF_GENERATED_JOB_UUID, THREAD_PREFIX -
Constructor Summary
ConstructorsConstructorDescriptionDirectoryStagingCommitter(org.apache.hadoop.fs.Path outputPath, org.apache.hadoop.mapreduce.TaskAttemptContext context) -
Method Summary
Modifier and TypeMethodDescriptiongetName()Get the name of this committer.voidpreCommitJob(CommitContext commitContext, AbstractS3ACommitter.ActiveCommit pending) Pre-commit actions for a job.voidsetupJob(org.apache.hadoop.mapreduce.JobContext context) Set up the job, including calling the same method on the wrapped committer.Methods inherited from class org.apache.hadoop.fs.s3a.commit.staging.StagingCommitter
abortJobInternal, abortTask, cleanup, cleanupStagingDirs, commitTask, commitTaskInternal, createWrappedCommitter, deleteDestinationPaths, deleteStagingUploadsParentDirectory, deleteTaskWorkingPathQuietly, failDestinationExists, getBaseTaskAttemptPath, getCommittedTaskPath, getCommittedTaskPath, getConfictModeOption, getConflictResolutionMode, getFinalKey, getFinalPath, getJobAttemptFileSystem, getJobAttemptPath, getJobAttemptPath, getJobAttemptPath, getJobPath, getTaskAttemptPath, getTaskOutput, getTempTaskAttemptPath, initFileOutputCommitterOptions, listPendingUploads, listPendingUploadsToAbort, listPendingUploadsToCommit, needsTaskCommit, setupTask, toString, useUniqueFilenamesMethods inherited from class org.apache.hadoop.fs.s3a.commit.AbstractS3ACommitter
abortJob, abortPendingUploads, abortPendingUploads, abortPendingUploadsInCleanup, buildJobUUID, cleanupJob, commitJob, commitJobInternal, commitPendingUploads, deleteTaskAttemptPathQuietly, getAuditSpanSource, getCommitOperations, getConf, getDestFS, getDestinationFS, getDestS3AFS, getIOStatistics, getJobContext, getOutputPath, getRole, getTaskAttemptFilesystem, getTaskAttemptPath, getUUID, getUUIDSource, getWorkPath, initiateJobOperation, initiateTaskOperation, initOutput, jobCompleted, maybeCreateSuccessMarker, maybeCreateSuccessMarkerFromCommits, maybeIgnore, maybeIgnore, precommitCheckPendingFiles, recoverTask, requiresDelayedCommitOutputInFileSystem, setConf, setDestFS, setOutputPath, setWorkPath, startOperation, updateCommonContext, warnOnActiveUploadsMethods inherited from class org.apache.hadoop.mapreduce.lib.output.PathOutputCommitter
hasOutputPathMethods inherited from class org.apache.hadoop.mapreduce.OutputCommitter
isCommitJobRepeatable, isRecoverySupported, isRecoverySupported
-
Field Details
-
NAME
Name: "directory".- See Also:
-
-
Constructor Details
-
DirectoryStagingCommitter
public DirectoryStagingCommitter(org.apache.hadoop.fs.Path outputPath, org.apache.hadoop.mapreduce.TaskAttemptContext context) throws IOException - Throws:
IOException
-
-
Method Details
-
getName
Description copied from class:AbstractS3ACommitterGet the name of this committer.- Overrides:
getNamein classStagingCommitter- Returns:
- the committer name.
-
setupJob
Description copied from class:StagingCommitterSet up the job, including calling the same method on the wrapped committer.- Overrides:
setupJobin classStagingCommitter- Parameters:
context- job context- Throws:
IOException- IO failure.
-
preCommitJob
public void preCommitJob(CommitContext commitContext, AbstractS3ACommitter.ActiveCommit pending) throws IOException Pre-commit actions for a job. Here: look at the conflict resolution mode and choose an action based on the current policy.- Overrides:
preCommitJobin classStagingCommitter- Parameters:
commitContext- commit contextpending- pending commits- Throws:
IOException- any failure
-