Uses of Class
org.apache.hadoop.fs.s3a.commit.impl.CommitContext
Packages that use CommitContext
Package
Description
Support for committing the output of analytics jobs directly to S3.
Internal classes which make use of mapreduce code.
This is the "Magic" committer and support.
The staging committers.
-
Uses of CommitContext in org.apache.hadoop.fs.s3a.commit
Methods in org.apache.hadoop.fs.s3a.commit that return CommitContextModifier and TypeMethodDescriptionprotected CommitContextAbstractS3ACommitter.initiateJobOperation(org.apache.hadoop.mapreduce.JobContext context) Start the final job commit/abort commit operations.protected CommitContextAbstractS3ACommitter.initiateTaskOperation(org.apache.hadoop.mapreduce.JobContext context) Start a ask commit/abort commit operations.Methods in org.apache.hadoop.fs.s3a.commit with parameters of type CommitContextModifier and TypeMethodDescriptionprotected voidAbstractS3ACommitter.abortJobInternal(CommitContext commitContext, boolean suppressExceptions) The internal job abort operation; can be overridden in tests.protected voidAbstractS3ACommitter.abortPendingUploads(CommitContext commitContext, List<SinglePendingCommit> pending, boolean suppressExceptions) Abort all pending uploads in the list.protected voidAbstractS3ACommitter.abortPendingUploads(CommitContext commitContext, AbstractS3ACommitter.ActiveCommit pending, boolean suppressExceptions, boolean deleteRemoteFiles) Abort all pending uploads in the list.protected voidAbstractS3ACommitter.abortPendingUploadsInCleanup(boolean suppressExceptions, CommitContext commitContext) Abort all pending uploads to the destination directory during job cleanup operations.protected voidAbstractS3ACommitter.cleanup(CommitContext commitContext, boolean suppressExceptions) Cleanup the job context, including aborting anything pending and destroying the thread pool.protected voidAbstractS3ACommitter.commitJobInternal(CommitContext commitContext, AbstractS3ACommitter.ActiveCommit pending) Internal Job commit operation: where the S3 requests are made (potentially in parallel).protected voidAbstractS3ACommitter.commitPendingUploads(CommitContext commitContext, AbstractS3ACommitter.ActiveCommit pending) Commit all the pending uploads.protected abstract AbstractS3ACommitter.ActiveCommitAbstractS3ACommitter.listPendingUploadsToCommit(CommitContext commitContext) Get the list of pending uploads for this job attempt.protected SuccessDataAbstractS3ACommitter.maybeCreateSuccessMarkerFromCommits(CommitContext commitContext, AbstractS3ACommitter.ActiveCommit pending) if the job requires a success marker on a successful job, create the fileCommitConstants._SUCCESS.protected voidAbstractS3ACommitter.precommitCheckPendingFiles(CommitContext commitContext, AbstractS3ACommitter.ActiveCommit pending) Run a precommit check that all files are loadable.voidAbstractS3ACommitter.preCommitJob(CommitContext commitContext, AbstractS3ACommitter.ActiveCommit pending) Subclass-specific pre-Job-commit actions. -
Uses of CommitContext in org.apache.hadoop.fs.s3a.commit.impl
Methods in org.apache.hadoop.fs.s3a.commit.impl that return CommitContextModifier and TypeMethodDescriptionCommitOperations.createCommitContext(org.apache.hadoop.mapreduce.JobContext context, org.apache.hadoop.fs.Path path, int committerThreads, org.apache.hadoop.fs.statistics.IOStatisticsContext ioStatisticsContext) Create a commit context for a job or task.CommitOperations.createCommitContextForTesting(org.apache.hadoop.fs.Path path, String jobId, int committerThreads) Create a stub commit context for tests.Methods in org.apache.hadoop.fs.s3a.commit.impl with parameters of type CommitContextModifier and TypeMethodDescriptionCommitOperations.abortAllSinglePendingCommits(org.apache.hadoop.fs.Path pendingDir, CommitContext commitContext, boolean recursive) Enumerate all pending files in a dir/tree, abort.org.apache.commons.lang3.tuple.Pair<PendingSet,List<org.apache.commons.lang3.tuple.Pair<org.apache.hadoop.fs.LocatedFileStatus, IOException>>> CommitOperations.loadSinglePendingCommits(org.apache.hadoop.fs.Path pendingDir, boolean recursive, CommitContext commitContext) Load all single pending commits in the directory, using the outer submitter. -
Uses of CommitContext in org.apache.hadoop.fs.s3a.commit.magic
Methods in org.apache.hadoop.fs.s3a.commit.magic with parameters of type CommitContextModifier and TypeMethodDescriptionprotected AbstractS3ACommitter.ActiveCommitMagicS3GuardCommitter.listPendingUploadsToCommit(CommitContext commitContext) Get the list of pending uploads for this job attempt, by listing all .pendingset files in the job attempt directory. -
Uses of CommitContext in org.apache.hadoop.fs.s3a.commit.staging
Methods in org.apache.hadoop.fs.s3a.commit.staging with parameters of type CommitContextModifier and TypeMethodDescriptionprotected voidStagingCommitter.abortJobInternal(CommitContext commitContext, boolean suppressExceptions) protected voidStagingCommitter.cleanup(CommitContext commitContext, boolean suppressExceptions) Staging committer cleanup includes calling wrapped committer's cleanup method, and removing staging uploads path and all destination paths in the final filesystem.protected intPartitionedStagingCommitter.commitTaskInternal(org.apache.hadoop.mapreduce.TaskAttemptContext context, List<? extends org.apache.hadoop.fs.FileStatus> taskOutput, CommitContext commitContext) protected intStagingCommitter.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.protected AbstractS3ACommitter.ActiveCommitStagingCommitter.listPendingUploads(CommitContext commitContext, boolean suppressExceptions) Get the list of pending uploads for this job attempt.protected AbstractS3ACommitter.ActiveCommitStagingCommitter.listPendingUploadsToAbort(CommitContext commitContext) Get the list of pending uploads for this job attempt, swallowing exceptions.protected AbstractS3ACommitter.ActiveCommitStagingCommitter.listPendingUploadsToCommit(CommitContext commitContext) Get the list of pending uploads for this job attempt.voidDirectoryStagingCommitter.preCommitJob(CommitContext commitContext, AbstractS3ACommitter.ActiveCommit pending) Pre-commit actions for a job.voidPartitionedStagingCommitter.preCommitJob(CommitContext commitContext, AbstractS3ACommitter.ActiveCommit pending) All Job-side conflict resolution.voidStagingCommitter.preCommitJob(CommitContext commitContext, AbstractS3ACommitter.ActiveCommit pending) Pre-commit actions for a job.