public abstract class AbstractS3ACommitterFactory
extends org.apache.hadoop.mapreduce.lib.output.PathOutputCommitterFactory
| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
LOG |
| Constructor and Description |
|---|
AbstractS3ACommitterFactory() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.hadoop.mapreduce.lib.output.PathOutputCommitter |
createOutputCommitter(org.apache.hadoop.fs.Path outputPath,
org.apache.hadoop.mapreduce.TaskAttemptContext context) |
abstract org.apache.hadoop.mapreduce.lib.output.PathOutputCommitter |
createTaskCommitter(S3AFileSystem fileSystem,
org.apache.hadoop.fs.Path outputPath,
org.apache.hadoop.mapreduce.TaskAttemptContext context)
Implementation point: create a task committer for a specific filesystem.
|
protected org.apache.hadoop.fs.FileSystem |
getDestinationFileSystem(org.apache.hadoop.fs.Path outputPath,
org.apache.hadoop.mapreduce.JobContext context)
Get the destination filesystem, returning null if there is none.
|
public org.apache.hadoop.mapreduce.lib.output.PathOutputCommitter createOutputCommitter(org.apache.hadoop.fs.Path outputPath,
org.apache.hadoop.mapreduce.TaskAttemptContext context)
throws IOException
createOutputCommitter in class org.apache.hadoop.mapreduce.lib.output.PathOutputCommitterFactoryIOExceptionprotected org.apache.hadoop.fs.FileSystem getDestinationFileSystem(org.apache.hadoop.fs.Path outputPath,
org.apache.hadoop.mapreduce.JobContext context)
throws IOException
outputPath - output pathcontext - job/task contextIOException - if the FS cannot be instantiatedpublic abstract org.apache.hadoop.mapreduce.lib.output.PathOutputCommitter createTaskCommitter(S3AFileSystem fileSystem, org.apache.hadoop.fs.Path outputPath, org.apache.hadoop.mapreduce.TaskAttemptContext context) throws IOException
fileSystem - destination FS.outputPath - final output path for workcontext - task contextIOException - any problem, including the FS not supporting
the desired committerCopyright © 2008–2021 Apache Software Foundation. All rights reserved.