org.apache.hadoop.hbase.mapreduce
Class WALPlayer
java.lang.Object
org.apache.hadoop.conf.Configured
org.apache.hadoop.hbase.mapreduce.WALPlayer
- All Implemented Interfaces:
- org.apache.hadoop.conf.Configurable, org.apache.hadoop.util.Tool
public class WALPlayer
- extends org.apache.hadoop.conf.Configured
- implements org.apache.hadoop.util.Tool
A tool to replay WAL files as a M/R job.
The WAL can be replayed for a set of tables or all tables,
and a timerange can be provided (in milliseconds).
The WAL is filtered to the passed set of tables and the output
can optionally be mapped to another set of tables.
WAL replay can also generate HFiles for later bulk importing,
in that case the WAL is replayed for a single table only.
Constructor Summary |
WALPlayer(org.apache.hadoop.conf.Configuration conf)
|
Methods inherited from class org.apache.hadoop.conf.Configured |
getConf, setConf |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.hadoop.conf.Configurable |
getConf, setConf |
WALPlayer
public WALPlayer(org.apache.hadoop.conf.Configuration conf)
- Parameters:
conf
- The Configuration
to use.
createSubmittableJob
public org.apache.hadoop.mapreduce.Job createSubmittableJob(String[] args)
throws IOException
- Sets up the actual job.
- Parameters:
args
- The command line parameters.
- Returns:
- The newly created job.
- Throws:
IOException
- When setting up the job fails.
main
public static void main(String[] args)
throws Exception
- Main entry point.
- Parameters:
args
- The command line parameters.
- Throws:
Exception
- When running the job fails.
run
public int run(String[] args)
throws Exception
- Specified by:
run
in interface org.apache.hadoop.util.Tool
- Throws:
Exception
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.