K - V - public class CopyOutputFormat<K,V>
extends org.apache.hadoop.mapreduce.lib.output.TextOutputFormat<K,V>
| Constructor and Description |
|---|
CopyOutputFormat() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkOutputSpecs(org.apache.hadoop.mapreduce.JobContext context) |
static org.apache.hadoop.fs.Path |
getCommitDirectory(org.apache.hadoop.mapreduce.Job job)
Getter for the final commit-directory.
|
org.apache.hadoop.mapreduce.OutputCommitter |
getOutputCommitter(org.apache.hadoop.mapreduce.TaskAttemptContext context) |
static org.apache.hadoop.fs.Path |
getWorkingDirectory(org.apache.hadoop.mapreduce.Job job)
Getter for the working directory.
|
static void |
setCommitDirectory(org.apache.hadoop.mapreduce.Job job,
org.apache.hadoop.fs.Path commitDirectory)
Setter for the final directory for DistCp (where files copied will be
moved, atomically.)
|
static void |
setWorkingDirectory(org.apache.hadoop.mapreduce.Job job,
org.apache.hadoop.fs.Path workingDirectory)
Setter for the working directory for DistCp (where files will be copied
before they are moved to the final commit-directory.)
|
getRecordWritergetCompressOutput, getDefaultWorkFile, getOutputCompressorClass, getOutputName, getOutputPath, getPathForWorkFile, getUniqueFile, getWorkOutputPath, setCompressOutput, setOutputCompressorClass, setOutputName, setOutputPathpublic static void setWorkingDirectory(org.apache.hadoop.mapreduce.Job job,
org.apache.hadoop.fs.Path workingDirectory)
job - The Job on whose configuration the working-directory is to be set.workingDirectory - The path to use as the working directory.public static void setCommitDirectory(org.apache.hadoop.mapreduce.Job job,
org.apache.hadoop.fs.Path commitDirectory)
job - The Job on whose configuration the working-directory is to be set.commitDirectory - The path to use for final commit.public static org.apache.hadoop.fs.Path getWorkingDirectory(org.apache.hadoop.mapreduce.Job job)
job - The Job from whose configuration the working-directory is to
be retrieved.public static org.apache.hadoop.fs.Path getCommitDirectory(org.apache.hadoop.mapreduce.Job job)
job - The Job from whose configuration the commit-directory is to be
retrieved.public org.apache.hadoop.mapreduce.OutputCommitter getOutputCommitter(org.apache.hadoop.mapreduce.TaskAttemptContext context)
throws IOException
getOutputCommitter in class org.apache.hadoop.mapreduce.lib.output.FileOutputFormat<K,V>IOExceptionpublic void checkOutputSpecs(org.apache.hadoop.mapreduce.JobContext context)
throws IOException
checkOutputSpecs in class org.apache.hadoop.mapreduce.lib.output.FileOutputFormat<K,V>IOExceptionCopyright © 2008–2020 Apache Software Foundation. All rights reserved.