public class S3ACommitterFactory extends AbstractS3ACommitterFactory
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.Modifier and Type | Field and Description |
---|---|
static String |
CLASSNAME
Name of this class: "org.apache.hadoop.fs.s3a.commit.S3ACommitterFactory".
|
LOG
Constructor and Description |
---|
S3ACommitterFactory() |
Modifier and Type | Method and Description |
---|---|
org.apache.hadoop.mapreduce.lib.output.PathOutputCommitter |
createTaskCommitter(S3AFileSystem fileSystem,
org.apache.hadoop.fs.Path outputPath,
org.apache.hadoop.mapreduce.TaskAttemptContext context)
Create a task committer.
|
createOutputCommitter, getDestinationFileSystem
public static final String CLASSNAME
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
createTaskCommitter
in class AbstractS3ACommitterFactory
fileSystem
- destination FS.outputPath
- final output path for workcontext
- job contextIOException
- instantiation failureCopyright © 2008–2022 Apache Software Foundation. All rights reserved.