|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.mapreduce.OutputFormat<ImmutableBytesWritable,org.apache.hadoop.io.Writable>
org.apache.hadoop.hbase.mapreduce.MultiTableOutputFormat
public class MultiTableOutputFormat
Hadoop output format that writes to one or more HBase tables. The key is
taken to be the table name while the output value must be either a
Put or a Delete instance. All tables must already exist, and
all Puts and Deletes must reference only valid column families.
Write-ahead logging (HLog) for Puts can be disabled by setting
WAL_PROPERTY to WAL_OFF. Default value is WAL_ON.
Note that disabling write-ahead logging is only appropriate for jobs where
loss of data due to region server failure can be tolerated (for example,
because it is easy to rerun a bulk import).
| Nested Class Summary | |
|---|---|
protected static class |
MultiTableOutputFormat.MultiTableRecordWriter
Record writer for outputting to multiple HTables. |
| Field Summary | |
|---|---|
static boolean |
WAL_OFF
Property value to disable write-ahead logging |
static boolean |
WAL_ON
Property value to use write-ahead logging |
static java.lang.String |
WAL_PROPERTY
Set this to WAL_OFF to turn off write-ahead logging (HLog) |
| Constructor Summary | |
|---|---|
MultiTableOutputFormat()
|
|
| Method Summary | |
|---|---|
void |
checkOutputSpecs(org.apache.hadoop.mapreduce.JobContext context)
|
org.apache.hadoop.mapreduce.OutputCommitter |
getOutputCommitter(org.apache.hadoop.mapreduce.TaskAttemptContext context)
|
org.apache.hadoop.mapreduce.RecordWriter<ImmutableBytesWritable,org.apache.hadoop.io.Writable> |
getRecordWriter(org.apache.hadoop.mapreduce.TaskAttemptContext context)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String WAL_PROPERTY
WAL_OFF to turn off write-ahead logging (HLog)
public static final boolean WAL_ON
public static final boolean WAL_OFF
| Constructor Detail |
|---|
public MultiTableOutputFormat()
| Method Detail |
|---|
public void checkOutputSpecs(org.apache.hadoop.mapreduce.JobContext context)
throws java.io.IOException,
java.lang.InterruptedException
checkOutputSpecs in class org.apache.hadoop.mapreduce.OutputFormat<ImmutableBytesWritable,org.apache.hadoop.io.Writable>java.io.IOException
java.lang.InterruptedException
public org.apache.hadoop.mapreduce.OutputCommitter getOutputCommitter(org.apache.hadoop.mapreduce.TaskAttemptContext context)
throws java.io.IOException,
java.lang.InterruptedException
getOutputCommitter in class org.apache.hadoop.mapreduce.OutputFormat<ImmutableBytesWritable,org.apache.hadoop.io.Writable>java.io.IOException
java.lang.InterruptedException
public org.apache.hadoop.mapreduce.RecordWriter<ImmutableBytesWritable,org.apache.hadoop.io.Writable> getRecordWriter(org.apache.hadoop.mapreduce.TaskAttemptContext context)
throws java.io.IOException,
java.lang.InterruptedException
getRecordWriter in class org.apache.hadoop.mapreduce.OutputFormat<ImmutableBytesWritable,org.apache.hadoop.io.Writable>java.io.IOException
java.lang.InterruptedException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||