@InterfaceAudience.Public @InterfaceStability.Stable public class WALPlayer extends org.apache.hadoop.conf.Configured implements org.apache.hadoop.util.Tool
Modifier and Type | Class and Description |
---|---|
(package private) static class |
WALPlayer.WALKeyValueMapper
A mapper that just writes out KeyValues.
|
protected static class |
WALPlayer.WALMapper
A mapper that writes out
Mutation to be directly applied to
a running HBase instance. |
Modifier and Type | Field and Description |
---|---|
(package private) static String |
BULK_OUTPUT_CONF_KEY |
private static org.apache.commons.logging.Log |
LOG |
(package private) static String |
NAME |
(package private) static String |
TABLE_MAP_KEY |
(package private) static String |
TABLES_KEY |
Constructor and Description |
---|
WALPlayer(org.apache.hadoop.conf.Configuration conf) |
Modifier and Type | Method and Description |
---|---|
org.apache.hadoop.mapreduce.Job |
createSubmittableJob(String[] args)
Sets up the actual job.
|
static void |
main(String[] args)
Main entry point.
|
int |
run(String[] args) |
(package private) void |
setupTime(org.apache.hadoop.conf.Configuration conf,
String option) |
private void |
usage(String errorMsg) |
private static final org.apache.commons.logging.Log LOG
static final String NAME
static final String BULK_OUTPUT_CONF_KEY
static final String TABLES_KEY
static final String TABLE_MAP_KEY
public WALPlayer(org.apache.hadoop.conf.Configuration conf)
conf
- The Configuration
to use.void setupTime(org.apache.hadoop.conf.Configuration conf, String option) throws IOException
IOException
public org.apache.hadoop.mapreduce.Job createSubmittableJob(String[] args) throws IOException
args
- The command line parameters.IOException
- When setting up the job fails.private void usage(String errorMsg)
public static void main(String[] args) throws Exception
args
- The command line parameters.Exception
- When running the job fails.Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.