org.apache.accumulo.core.client.mapreduce
Class AccumuloFileOutputFormat
java.lang.Object
org.apache.hadoop.mapreduce.OutputFormat<K,V>
org.apache.hadoop.mapreduce.lib.output.FileOutputFormat<Key,Value>
org.apache.accumulo.core.client.mapreduce.AccumuloFileOutputFormat
public class AccumuloFileOutputFormat
- extends org.apache.hadoop.mapreduce.lib.output.FileOutputFormat<Key,Value>
This class allows MapReduce jobs to use the Accumulo data file format for output of data
The user must specify the output path that does not exist following via static method calls to this class:
AccumuloFileOutputFormat.setOutputPath(job, outputDirectory)
Other methods from FileOutputFormat to configure options are ignored Compression is using the DefaultCodec and is always on
Field Summary |
static java.lang.String |
FILE_TYPE
|
Method Summary |
protected static Instance |
getInstance(org.apache.hadoop.mapreduce.JobContext job)
|
org.apache.hadoop.mapreduce.RecordWriter<Key,Value> |
getRecordWriter(org.apache.hadoop.mapreduce.TaskAttemptContext job)
|
static void |
setFileType(org.apache.hadoop.mapreduce.JobContext job,
java.lang.String type)
|
static void |
setZooKeeperInstance(org.apache.hadoop.mapreduce.JobContext job,
java.lang.String instanceName,
java.lang.String zooKeepers)
|
Methods inherited from class org.apache.hadoop.mapreduce.lib.output.FileOutputFormat |
checkOutputSpecs, getCompressOutput, getDefaultWorkFile, getOutputCommitter, getOutputCompressorClass, getOutputPath, getPathForWorkFile, getUniqueFile, getWorkOutputPath, setCompressOutput, setOutputCompressorClass, setOutputPath |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FILE_TYPE
public static final java.lang.String FILE_TYPE
AccumuloFileOutputFormat
public AccumuloFileOutputFormat()
getRecordWriter
public org.apache.hadoop.mapreduce.RecordWriter<Key,Value> getRecordWriter(org.apache.hadoop.mapreduce.TaskAttemptContext job)
throws java.io.IOException,
java.lang.InterruptedException
- Specified by:
getRecordWriter
in class org.apache.hadoop.mapreduce.lib.output.FileOutputFormat<Key,Value>
- Throws:
java.io.IOException
java.lang.InterruptedException
setFileType
public static void setFileType(org.apache.hadoop.mapreduce.JobContext job,
java.lang.String type)
setZooKeeperInstance
public static void setZooKeeperInstance(org.apache.hadoop.mapreduce.JobContext job,
java.lang.String instanceName,
java.lang.String zooKeepers)
getInstance
protected static Instance getInstance(org.apache.hadoop.mapreduce.JobContext job)
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.