public class AccumuloOutputFormat extends org.apache.hadoop.mapreduce.OutputFormat<org.apache.hadoop.io.Text,Mutation>
OutputFormat
accepts keys and values of type Text
(for a table name) and Mutation
from the Map
and Reduce functions. Configured with fluent API using configure()
.
Here is an example with all possible options:
AccumuloOutputFormat.configure().clientProperties(props).batchWriterOptions(bwConfig) .defaultTable(name).createTables() // disabled by default .simulationMode() // disabled by default .store(job);
Constructor and Description |
---|
AccumuloOutputFormat() |
Modifier and Type | Method and Description |
---|---|
void |
checkOutputSpecs(org.apache.hadoop.mapreduce.JobContext job) |
static OutputFormatBuilder.ClientParams<org.apache.hadoop.mapreduce.Job> |
configure()
Sets all the information required for this map reduce job.
|
org.apache.hadoop.mapreduce.OutputCommitter |
getOutputCommitter(org.apache.hadoop.mapreduce.TaskAttemptContext context) |
org.apache.hadoop.mapreduce.RecordWriter<org.apache.hadoop.io.Text,Mutation> |
getRecordWriter(org.apache.hadoop.mapreduce.TaskAttemptContext attempt) |
public void checkOutputSpecs(org.apache.hadoop.mapreduce.JobContext job) throws IOException
checkOutputSpecs
in class org.apache.hadoop.mapreduce.OutputFormat<org.apache.hadoop.io.Text,Mutation>
IOException
public org.apache.hadoop.mapreduce.OutputCommitter getOutputCommitter(org.apache.hadoop.mapreduce.TaskAttemptContext context)
getOutputCommitter
in class org.apache.hadoop.mapreduce.OutputFormat<org.apache.hadoop.io.Text,Mutation>
public org.apache.hadoop.mapreduce.RecordWriter<org.apache.hadoop.io.Text,Mutation> getRecordWriter(org.apache.hadoop.mapreduce.TaskAttemptContext attempt) throws IOException
getRecordWriter
in class org.apache.hadoop.mapreduce.OutputFormat<org.apache.hadoop.io.Text,Mutation>
IOException
public static OutputFormatBuilder.ClientParams<org.apache.hadoop.mapreduce.Job> configure()
Copyright © 2011–2019 The Apache Software Foundation. All rights reserved.