public class HiveHBaseTableOutputFormat extends org.apache.hadoop.hbase.mapreduce.TableOutputFormat<org.apache.hadoop.hbase.io.ImmutableBytesWritable> implements org.apache.hadoop.mapred.OutputFormat<org.apache.hadoop.hbase.io.ImmutableBytesWritable,Object>
Modifier and Type | Field and Description |
---|---|
static String |
HBASE_WAL_ENABLED |
Constructor and Description |
---|
HiveHBaseTableOutputFormat() |
Modifier and Type | Method and Description |
---|---|
void |
checkOutputSpecs(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.mapred.JobConf jc)
Update the out table, and output an empty key as the key.
|
org.apache.hadoop.mapreduce.OutputCommitter |
getOutputCommitter(org.apache.hadoop.mapreduce.TaskAttemptContext context) |
org.apache.hadoop.mapred.RecordWriter<org.apache.hadoop.hbase.io.ImmutableBytesWritable,Object> |
getRecordWriter(org.apache.hadoop.fs.FileSystem fileSystem,
org.apache.hadoop.mapred.JobConf jobConf,
String name,
org.apache.hadoop.util.Progressable progressable) |
public static final String HBASE_WAL_ENABLED
public void checkOutputSpecs(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.mapred.JobConf jc) throws IOException
checkOutputSpecs
in interface org.apache.hadoop.mapred.OutputFormat<org.apache.hadoop.hbase.io.ImmutableBytesWritable,Object>
jc
- the job configuration filefinalOutPath
- the final output table namevalueClass
- the value classisCompressed
- whether the content is compressed or nottableProperties
- the table info of the corresponding tableprogress
- progress used for status reportIOException
public org.apache.hadoop.mapred.RecordWriter<org.apache.hadoop.hbase.io.ImmutableBytesWritable,Object> getRecordWriter(org.apache.hadoop.fs.FileSystem fileSystem, org.apache.hadoop.mapred.JobConf jobConf, String name, org.apache.hadoop.util.Progressable progressable) throws IOException
getRecordWriter
in interface org.apache.hadoop.mapred.OutputFormat<org.apache.hadoop.hbase.io.ImmutableBytesWritable,Object>
IOException
public org.apache.hadoop.mapreduce.OutputCommitter getOutputCommitter(org.apache.hadoop.mapreduce.TaskAttemptContext context) throws IOException, InterruptedException
getOutputCommitter
in class org.apache.hadoop.hbase.mapreduce.TableOutputFormat<org.apache.hadoop.hbase.io.ImmutableBytesWritable>
IOException
InterruptedException
Copyright © 2017 The Apache Software Foundation. All rights reserved.