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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hadoop.conf.Configuration
getConf()
void
run
(org.apache.hadoop.fs.Path[] dirPaths, TableName[] tableNames, org.apache.hadoop.fs.Path restoreRootDir, TableName[] newTableNames, boolean fullBackupRestore) Run restore operationvoid
setConf
(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:RestoreJob
Run restore operation- Specified by:
run
in 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:
getConf
in interfaceorg.apache.hadoop.conf.Configurable
-
setConf
- Specified by:
setConf
in interfaceorg.apache.hadoop.conf.Configurable
-