public class AccumuloFileOutputFormat extends org.apache.hadoop.mapreduce.lib.output.FileOutputFormat<Key,Value>
Key
), as this is an important
requirement of Accumulo data files. The output path to be created must be specified via
configure()
, which uses a fluent API. For Example:
AccumuloFileOutputFormat.configure() .outputPath(path) .fileBlockSize(b) .compression(type) .summarizers(sc1, sc2).store(job));For all available options see
FileOutputFormatBuilder
. Methods inherited from
FileOutputFormat
are not supported and may be ignored or cause failures. Using other
Hadoop configuration options that affect the behavior of the underlying files directly in the
Job's configuration may work, but are not directly supported at this time.Constructor and Description |
---|
AccumuloFileOutputFormat() |
Modifier and Type | Method and Description |
---|---|
static FileOutputFormatBuilder.PathParams<org.apache.hadoop.mapreduce.Job> |
configure()
Sets all the information required for this map reduce job.
|
org.apache.hadoop.mapreduce.RecordWriter<Key,Value> |
getRecordWriter(org.apache.hadoop.mapreduce.TaskAttemptContext context) |
checkOutputSpecs, getCompressOutput, getDefaultWorkFile, getOutputCommitter, getOutputCompressorClass, getOutputName, getOutputPath, getPathForWorkFile, getUniqueFile, getWorkOutputPath, setCompressOutput, setOutputCompressorClass, setOutputName, setOutputPath
public org.apache.hadoop.mapreduce.RecordWriter<Key,Value> getRecordWriter(org.apache.hadoop.mapreduce.TaskAttemptContext context) throws IOException
getRecordWriter
in class org.apache.hadoop.mapreduce.lib.output.FileOutputFormat<Key,Value>
IOException
public static FileOutputFormatBuilder.PathParams<org.apache.hadoop.mapreduce.Job> configure()
Copyright © 2011–2019 The Apache Software Foundation. All rights reserved.