public class PartitionedStagingCommitter extends StagingCommitter
AbstractS3ACommitter.ActiveCommit, AbstractS3ACommitter.JobUUIDSource| Modifier and Type | Field and Description |
|---|---|
static String |
NAME
Name: "partitioned".
|
E_SELF_GENERATED_JOB_UUID, THREAD_PREFIX| Constructor and Description |
|---|
PartitionedStagingCommitter(org.apache.hadoop.fs.Path outputPath,
org.apache.hadoop.mapreduce.TaskAttemptContext context) |
| Modifier and Type | Method and Description |
|---|---|
protected int |
commitTaskInternal(org.apache.hadoop.mapreduce.TaskAttemptContext context,
List<? extends org.apache.hadoop.fs.FileStatus> taskOutput,
CommitContext commitContext)
Commit the task by uploading all created files and then
writing a pending entry for them.
|
String |
getName()
Get the name of this committer.
|
void |
preCommitJob(CommitContext commitContext,
AbstractS3ACommitter.ActiveCommit pending)
All
Job-side conflict resolution.
|
String |
toString() |
abortJobInternal, abortTask, cleanup, cleanupStagingDirs, commitTask, 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, setupJob, setupTask, useUniqueFilenamesabortJob, 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, warnOnActiveUploadshasOutputPathpublic static final String NAME
public PartitionedStagingCommitter(org.apache.hadoop.fs.Path outputPath,
org.apache.hadoop.mapreduce.TaskAttemptContext context)
throws IOException
IOExceptionpublic String getName()
AbstractS3ACommittergetName in class StagingCommitterpublic String toString()
toString in class StagingCommitterprotected int commitTaskInternal(org.apache.hadoop.mapreduce.TaskAttemptContext context,
List<? extends org.apache.hadoop.fs.FileStatus> taskOutput,
CommitContext commitContext)
throws IOException
StagingCommittercommitTaskInternal in class StagingCommittercontext - task contexttaskOutput - list of files from the outputcommitContext - commit contextIOException - IO Failures.public void preCommitJob(CommitContext commitContext, AbstractS3ACommitter.ActiveCommit pending) throws IOException
preCommitJob in class StagingCommittercommitContext - commit contextpending - the pending operationsIOException - any failureCopyright © 2008–2024 Apache Software Foundation. All rights reserved.