K - V - public class CopyOutputFormat<K,V> extends TextOutputFormat<K,V>
TextOutputFormat.LineRecordWriter<K,V>FileOutputFormat.CounterSEPERATORBASE_OUTPUT_NAME, COMPRESS, COMPRESS_CODEC, COMPRESS_TYPE, OUTDIR, PART| Constructor and Description |
|---|
CopyOutputFormat() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkOutputSpecs(JobContext context) |
static Path |
getCommitDirectory(Job job)
Getter for the final commit-directory.
|
OutputCommitter |
getOutputCommitter(TaskAttemptContext context) |
static Path |
getWorkingDirectory(Job job)
Getter for the working directory.
|
static void |
setCommitDirectory(Job job,
Path commitDirectory)
Setter for the final directory for DistCp (where files copied will be
moved, atomically.)
|
static void |
setWorkingDirectory(Job job,
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(Job job, 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(Job job, 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 Path getWorkingDirectory(Job job)
job - The Job from whose configuration the working-directory is to
be retrieved.public static Path getCommitDirectory(Job job)
job - The Job from whose configuration the commit-directory is to be
retrieved.public OutputCommitter getOutputCommitter(TaskAttemptContext context) throws IOException
getOutputCommitter in class FileOutputFormat<K,V>IOExceptionpublic void checkOutputSpecs(JobContext context) throws IOException
checkOutputSpecs in class FileOutputFormat<K,V>IOExceptionCopyright © 2018 CERN. All Rights Reserved.