Class MapReduceRestoreToOriginalSplitsJob
java.lang.Object
org.apache.hadoop.hbase.backup.mapreduce.MapReduceRestoreToOriginalSplitsJob
- All Implemented Interfaces:
org.apache.hadoop.conf.Configurable
,RestoreJob
-
Field Summary
FieldsFields 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 TypeMethodDescriptionbuildFamily2Files
(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path[] dirs, boolean isFullBackup) buildFullBackupFamily2Files
(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path[] dirs) org.apache.hadoop.conf.Configuration
getConf()
void
run
(org.apache.hadoop.fs.Path[] dirPaths, TableName[] fromTables, org.apache.hadoop.fs.Path restoreRootDir, TableName[] toTables, boolean fullBackupRestore) Run restore operationvoid
setConf
(org.apache.hadoop.conf.Configuration configuration)
-
Field Details
-
conf
-
-
Constructor Details
-
MapReduceRestoreToOriginalSplitsJob
public MapReduceRestoreToOriginalSplitsJob()
-
-
Method Details
-
run
public void run(org.apache.hadoop.fs.Path[] dirPaths, TableName[] fromTables, org.apache.hadoop.fs.Path restoreRootDir, TableName[] toTables, boolean fullBackupRestore) throws IOException Description copied from interface:RestoreJob
Run restore operation- Specified by:
run
in interfaceRestoreJob
- Parameters:
dirPaths
- path array of WAL log directoriesfromTables
- from tablesrestoreRootDir
- output file systemtoTables
- to tablesfullBackupRestore
- full backup restore- Throws:
IOException
- if running the job fails
-
setConf
- Specified by:
setConf
in interfaceorg.apache.hadoop.conf.Configurable
-
getConf
- Specified by:
getConf
in interfaceorg.apache.hadoop.conf.Configurable
-
buildFamily2Files
private static Map<byte[],List<org.apache.hadoop.fs.Path>> buildFamily2Files(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path[] dirs, boolean isFullBackup) throws IOException - Throws:
IOException
-
buildFullBackupFamily2Files
private static Map<byte[],List<org.apache.hadoop.fs.Path>> buildFullBackupFamily2Files(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path[] dirs) throws IOException - Throws:
IOException
-