KEY - The type of the key. Ignored in this class.@InterfaceAudience.Public @InterfaceStability.Stable public class TableOutputFormat<KEY> extends org.apache.hadoop.mapreduce.OutputFormat<KEY,Mutation> implements org.apache.hadoop.conf.Configurable
| Modifier and Type | Class and Description |
|---|---|
protected static class |
TableOutputFormat.TableRecordWriter<KEY>
Writes the reducer output to an HBase table.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
OUTPUT_TABLE
Job parameter that specifies the output table.
|
static String |
QUORUM_ADDRESS
Optional job parameter to specify a peer cluster.
|
static String |
QUORUM_PORT
Optional job parameter to specify peer cluster's ZK client port
|
static String |
REGION_SERVER_CLASS
Optional specification of the rs class name of the peer cluster
|
static String |
REGION_SERVER_IMPL
Optional specification of the rs impl name of the peer cluster
|
| Constructor and Description |
|---|
TableOutputFormat() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkOutputSpecs(org.apache.hadoop.mapreduce.JobContext context)
Checks if the output target exists.
|
org.apache.hadoop.conf.Configuration |
getConf() |
org.apache.hadoop.mapreduce.OutputCommitter |
getOutputCommitter(org.apache.hadoop.mapreduce.TaskAttemptContext context)
Returns the output committer.
|
org.apache.hadoop.mapreduce.RecordWriter<KEY,Mutation> |
getRecordWriter(org.apache.hadoop.mapreduce.TaskAttemptContext context)
Creates a new record writer.
|
void |
setConf(org.apache.hadoop.conf.Configuration otherConf) |
public static final String OUTPUT_TABLE
public static final String QUORUM_ADDRESS
hbase-site.xml).public static final String QUORUM_PORT
public static final String REGION_SERVER_CLASS
public static final String REGION_SERVER_IMPL
public org.apache.hadoop.mapreduce.RecordWriter<KEY,Mutation> getRecordWriter(org.apache.hadoop.mapreduce.TaskAttemptContext context) throws IOException, InterruptedException
getRecordWriter in class org.apache.hadoop.mapreduce.OutputFormat<KEY,Mutation>context - The current task context.IOException - When creating the writer fails.InterruptedException - When the jobs is cancelled.FileOutputFormat.getRecordWriter(org.apache.hadoop.mapreduce.TaskAttemptContext)public void checkOutputSpecs(org.apache.hadoop.mapreduce.JobContext context)
throws IOException,
InterruptedException
checkOutputSpecs in class org.apache.hadoop.mapreduce.OutputFormat<KEY,Mutation>context - The current context.IOException - When the check fails.InterruptedException - When the job is aborted.OutputFormat.checkOutputSpecs(org.apache.hadoop.mapreduce.JobContext)public org.apache.hadoop.mapreduce.OutputCommitter getOutputCommitter(org.apache.hadoop.mapreduce.TaskAttemptContext context)
throws IOException,
InterruptedException
getOutputCommitter in class org.apache.hadoop.mapreduce.OutputFormat<KEY,Mutation>context - The current context.IOException - When creating the committer fails.InterruptedException - When the job is aborted.OutputFormat.getOutputCommitter(org.apache.hadoop.mapreduce.TaskAttemptContext)public org.apache.hadoop.conf.Configuration getConf()
getConf in interface org.apache.hadoop.conf.Configurablepublic void setConf(org.apache.hadoop.conf.Configuration otherConf)
setConf in interface org.apache.hadoop.conf.ConfigurableCopyright © 2014 The Apache Software Foundation. All rights reserved.