Package org.apache.hadoop.fs.s3a.commit
Class S3ACommitterFactory
java.lang.Object
org.apache.hadoop.conf.Configured
org.apache.hadoop.mapreduce.lib.output.PathOutputCommitterFactory
org.apache.hadoop.fs.s3a.commit.AbstractS3ACommitterFactory
org.apache.hadoop.fs.s3a.commit.S3ACommitterFactory
- All Implemented Interfaces:
org.apache.hadoop.conf.Configurable
The S3A committer factory which chooses the committer based on the
specific option chosen in a per-bucket basis from the property
CommitConstants.FS_S3A_COMMITTER_NAME.
This should be instantiated by using the property value CLASSNAME
as the committer for the job, then set the filesystem property
CommitConstants.FS_S3A_COMMITTER_NAME to one of
CommitConstants.COMMITTER_NAME_FILE: File committer.CommitConstants.COMMITTER_NAME_DIRECTORY: Staging directory committer.CommitConstants.COMMITTER_NAME_PARTITIONED: Staging partitioned committer.CommitConstants.COMMITTER_NAME_MAGIC: the "Magic" committerInternalCommitterConstants.COMMITTER_NAME_STAGING: the "staging" committer, which isn't intended for use outside tests.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringName of this class: "org.apache.hadoop.fs.s3a.commit.S3ACommitterFactory".Fields inherited from class org.apache.hadoop.fs.s3a.commit.AbstractS3ACommitterFactory
LOGFields inherited from class org.apache.hadoop.mapreduce.lib.output.PathOutputCommitterFactory
COMMITTER_FACTORY_CLASS, COMMITTER_FACTORY_DEFAULT, COMMITTER_FACTORY_SCHEME, COMMITTER_FACTORY_SCHEME_PATTERN, FILE_COMMITTER_FACTORY, NAMED_COMMITTER_CLASS, NAMED_COMMITTER_FACTORY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hadoop.mapreduce.lib.output.PathOutputCommittercreateTaskCommitter(S3AFileSystem fileSystem, org.apache.hadoop.fs.Path outputPath, org.apache.hadoop.mapreduce.TaskAttemptContext context) Create a task committer.Methods inherited from class org.apache.hadoop.fs.s3a.commit.AbstractS3ACommitterFactory
createOutputCommitter, getDestinationFileSystemMethods inherited from class org.apache.hadoop.mapreduce.lib.output.PathOutputCommitterFactory
createCommitter, createFileOutputCommitter, getCommitterFactoryMethods inherited from class org.apache.hadoop.conf.Configured
getConf, setConf
-
Field Details
-
CLASSNAME
Name of this class: "org.apache.hadoop.fs.s3a.commit.S3ACommitterFactory".- See Also:
-
-
Constructor Details
-
S3ACommitterFactory
public S3ACommitterFactory()
-
-
Method Details
-
createTaskCommitter
public org.apache.hadoop.mapreduce.lib.output.PathOutputCommitter createTaskCommitter(S3AFileSystem fileSystem, org.apache.hadoop.fs.Path outputPath, org.apache.hadoop.mapreduce.TaskAttemptContext context) throws IOException Create a task committer.- Specified by:
createTaskCommitterin classAbstractS3ACommitterFactory- Parameters:
fileSystem- destination FS.outputPath- final output path for workcontext- job context- Returns:
- a committer
- Throws:
IOException- instantiation failure
-