Class MapReduceHFileSplitterJob
java.lang.Object
org.apache.hadoop.conf.Configured
org.apache.hadoop.hbase.backup.mapreduce.MapReduceHFileSplitterJob
- All Implemented Interfaces:
org.apache.hadoop.conf.Configurable
,org.apache.hadoop.util.Tool
@Private
public class MapReduceHFileSplitterJob
extends org.apache.hadoop.conf.Configured
implements org.apache.hadoop.util.Tool
A tool to split HFiles into new region boundaries as a MapReduce job. The tool generates HFiles
for later bulk importing.
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static class
A mapper that just writes out cells. -
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
MapReduceHFileSplitterJob
(org.apache.hadoop.conf.Configuration c) -
Method Summary
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
-
Field Details
-
LOG
-
NAME
- See Also:
-
BULK_OUTPUT_CONF_KEY
- See Also:
-
TABLES_KEY
- See Also:
-
TABLE_MAP_KEY
- See Also:
-
JOB_NAME_CONF_KEY
- See Also:
-
-
Constructor Details
-
MapReduceHFileSplitterJob
public MapReduceHFileSplitterJob() -
MapReduceHFileSplitterJob
-
-
Method Details
-
createSubmittableJob
Sets up the actual job.- Parameters:
args
- The command line parameters.- Returns:
- The newly created job.
- Throws:
IOException
- When setting up the job fails.
-
usage
Print usage- Parameters:
errorMsg
- Error message. Can be null.
-
main
Main entry point.- Parameters:
args
- The command line parameters.- Throws:
Exception
- When running the job fails.
-
run
- Specified by:
run
in interfaceorg.apache.hadoop.util.Tool
- Throws:
Exception
-