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.ConfigurationgetConf()voidrun(org.apache.hadoop.fs.Path[] dirPaths, TableName[] fromTables, org.apache.hadoop.fs.Path restoreRootDir, TableName[] toTables, boolean fullBackupRestore) Run restore operationvoidsetConf(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:RestoreJobRun restore operation- Specified by:
runin 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:
setConfin interfaceorg.apache.hadoop.conf.Configurable
-
getConf
- Specified by:
getConfin 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
-