|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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
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 String |
BLOCK_SIZE
|
static String |
FILE_TYPE
|
Constructor Summary | |
---|---|
AccumuloFileOutputFormat()
|
Method Summary | |
---|---|
protected static Instance |
getInstance(org.apache.hadoop.conf.Configuration conf)
|
protected static Instance |
getInstance(org.apache.hadoop.mapreduce.JobContext job)
Deprecated. since 1.4, use getInstance(Configuration conf) no other configurations are used by OutputFormat |
org.apache.hadoop.mapreduce.RecordWriter<Key,Value> |
getRecordWriter(org.apache.hadoop.mapreduce.TaskAttemptContext job)
|
protected static void |
handleBlockSize(org.apache.hadoop.conf.Configuration conf)
|
protected static void |
handleBlockSize(org.apache.hadoop.mapreduce.JobContext job)
Deprecated. Use handleBlockSize(Configuration) instead |
static void |
setBlockSize(org.apache.hadoop.conf.Configuration conf,
int blockSize)
|
static void |
setBlockSize(org.apache.hadoop.mapreduce.JobContext job,
int blockSize)
Deprecated. Use setBlockSize(Configuration,int) instead |
static void |
setFileType(org.apache.hadoop.conf.Configuration conf,
String type)
|
static void |
setFileType(org.apache.hadoop.mapreduce.JobContext job,
String type)
Deprecated. Use setFileType(Configuration,String) instead |
static void |
setZooKeeperInstance(org.apache.hadoop.conf.Configuration conf,
String instanceName,
String zooKeepers)
|
static void |
setZooKeeperInstance(org.apache.hadoop.mapreduce.JobContext job,
String instanceName,
String zooKeepers)
Deprecated. since 1.4, use setZooKeeperInstance(Configuration conf, String instanceName, 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 |
Field Detail |
---|
public static final String FILE_TYPE
public static final String BLOCK_SIZE
Constructor Detail |
---|
public AccumuloFileOutputFormat()
Method Detail |
---|
public org.apache.hadoop.mapreduce.RecordWriter<Key,Value> getRecordWriter(org.apache.hadoop.mapreduce.TaskAttemptContext job) throws IOException, InterruptedException
getRecordWriter
in class org.apache.hadoop.mapreduce.lib.output.FileOutputFormat<Key,Value>
IOException
InterruptedException
protected static void handleBlockSize(org.apache.hadoop.mapreduce.JobContext job)
handleBlockSize(Configuration)
instead
protected static void handleBlockSize(org.apache.hadoop.conf.Configuration conf)
public static void setFileType(org.apache.hadoop.mapreduce.JobContext job, String type)
setFileType(Configuration,String)
instead
public static void setFileType(org.apache.hadoop.conf.Configuration conf, String type)
public static void setBlockSize(org.apache.hadoop.mapreduce.JobContext job, int blockSize)
setBlockSize(Configuration,int)
instead
public static void setBlockSize(org.apache.hadoop.conf.Configuration conf, int blockSize)
public static void setZooKeeperInstance(org.apache.hadoop.mapreduce.JobContext job, String instanceName, String zooKeepers)
setZooKeeperInstance(Configuration conf, String instanceName, String zooKeepers)
job
- instanceName
- zooKeepers
- public static void setZooKeeperInstance(org.apache.hadoop.conf.Configuration conf, String instanceName, String zooKeepers)
conf
- instanceName
- zooKeepers
- protected static Instance getInstance(org.apache.hadoop.mapreduce.JobContext job)
getInstance(Configuration conf)
no other configurations are used by OutputFormat
job
-
protected static Instance getInstance(org.apache.hadoop.conf.Configuration conf)
conf
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |