@InterfaceAudience.Private @InterfaceStability.Evolving public class HBackupFileSystem extends Object
Modifier and Type | Field and Description |
---|---|
static Log |
LOG |
Modifier and Type | Method and Description |
---|---|
static void |
checkImageManifestExist(HashMap<TableName,BackupManifest> backupManifestMap,
TableName[] tableArray,
Configuration conf,
Path backupRootPath,
String backupId)
Check whether the backup image path and there is manifest file in the path.
|
static String |
getLogBackupDir(String backupRootDir,
String backupId)
Given the backup root dir and the backup id, return the log file location for an incremental
backup.
|
static Path |
getLogBackupPath(String backupRootDir,
String backupId) |
static BackupManifest |
getManifest(TableName tableName,
Configuration conf,
Path backupRootPath,
String backupId) |
static String |
getTableBackupDir(String backupRootDir,
String backupId,
TableName tableName)
Given the backup root dir, backup id and the table name, return the backup image location,
which is also where the backup manifest file is.
|
static Path |
getTableBackupPath(TableName tableName,
Path backupRootPath,
String backupId)
Given the backup root dir, backup id and the table name, return the backup image location,
which is also where the backup manifest file is.
|
public static String getTableBackupDir(String backupRootDir, String backupId, TableName tableName)
backupRootDir
- backup root directorybackupId
- backup idtable
- table namepublic static Path getTableBackupPath(TableName tableName, Path backupRootPath, String backupId)
backupRootPath
- backup root pathtableName
- table namebackupId
- backup Idpublic static String getLogBackupDir(String backupRootDir, String backupId)
backupRootDir
- backup root directorybackupId
- backup idpublic static BackupManifest getManifest(TableName tableName, Configuration conf, Path backupRootPath, String backupId) throws IOException
IOException
public static void checkImageManifestExist(HashMap<TableName,BackupManifest> backupManifestMap, TableName[] tableArray, Configuration conf, Path backupRootPath, String backupId) throws IOException
backupManifestMap
- If all the manifests are found, then they are put into this maptableArray
- the tables involvedIOException
- exception