Class MapReduceRestoreJob
java.lang.Object
org.apache.hadoop.hbase.backup.mapreduce.MapReduceRestoreJob
- All Implemented Interfaces:
org.apache.hadoop.conf.Configurable,RestoreJob
MapReduce implementation of
RestoreJob For backup restore, it runs
MapReduceHFileSplitterJob job and creates HFiles which are aligned with a region
boundaries of a table being restored. The resulting HFiles then are loaded using HBase bulk load
tool BulkLoadHFiles.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hadoop.conf.ConfigurationgetConf()voidrun(org.apache.hadoop.fs.Path[] dirPaths, TableName[] tableNames, org.apache.hadoop.fs.Path restoreRootDir, TableName[] newTableNames, boolean fullBackupRestore) Run restore operationvoidsetConf(org.apache.hadoop.conf.Configuration conf)
-
Field Details
-
LOG
-
player
-
conf
-
-
Constructor Details
-
MapReduceRestoreJob
public MapReduceRestoreJob()
-
-
Method Details
-
run
public void run(org.apache.hadoop.fs.Path[] dirPaths, TableName[] tableNames, org.apache.hadoop.fs.Path restoreRootDir, TableName[] newTableNames, boolean fullBackupRestore) throws IOException Description copied from interface:RestoreJobRun restore operation- Specified by:
runin interfaceRestoreJob- Parameters:
dirPaths- path array of WAL log directoriestableNames- from tablesrestoreRootDir- output file systemnewTableNames- to tablesfullBackupRestore- full backup restore- Throws:
IOException- if running the job fails
-
getConf
- Specified by:
getConfin interfaceorg.apache.hadoop.conf.Configurable
-
setConf
- Specified by:
setConfin interfaceorg.apache.hadoop.conf.Configurable
-