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
Nested ClassesModifier and TypeClassDescription(package private) static classA mapper that just writes out cells. -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedMapReduceHFileSplitterJob(org.apache.hadoop.conf.Configuration c) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hadoop.mapreduce.JobcreateSubmittableJob(String[] args) Sets up the actual job.private static RegionLocatorgetRegionLocator(org.apache.hadoop.conf.Configuration conf, Connection conn, TableName table) static voidMain entry point.intprivate voidPrint usageMethods inherited from class org.apache.hadoop.conf.Configured
getConf, setConfMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
runin interfaceorg.apache.hadoop.util.Tool- Throws:
Exception
-
getRegionLocator
private static RegionLocator getRegionLocator(org.apache.hadoop.conf.Configuration conf, Connection conn, TableName table) throws IOException - Throws:
IOException
-