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
FieldsModifier and TypeFieldDescriptionprivate org.apache.hadoop.conf.Configurationstatic final org.slf4j.Loggerprivate org.apache.hadoop.util.ToolFields inherited from interface org.apache.hadoop.hbase.backup.RestoreJob
BACKUP_ROOT_PATH_KEY, KEEP_ORIGINAL_SPLITS_DEFAULT, KEEP_ORIGINAL_SPLITS_KEY - 
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
 
 -