@InterfaceAudience.Private public final class HBackupFileSystem extends Object
Modifier and Type | Field and Description |
---|---|
static org.slf4j.Logger |
LOG |
Modifier | Constructor and Description |
---|---|
private |
HBackupFileSystem()
This is utility class.
|
Modifier and Type | Method and Description |
---|---|
static void |
checkImageManifestExist(HashMap<TableName,BackupManifest> backupManifestMap,
TableName[] tableArray,
org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.Path backupRootPath,
String backupId)
Check whether the backup image path and there is manifest file in the path.
|
static org.apache.hadoop.fs.Path |
getBackupPath(String backupRootDir,
String backupId) |
static org.apache.hadoop.fs.Path |
getBackupTmpDirPath(String backupRootDir)
Get backup temporary directory
|
static org.apache.hadoop.fs.Path |
getBackupTmpDirPathForBackupId(String backupRoot,
String backupId)
Get backup tmp directory for backupId
|
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 org.apache.hadoop.fs.Path |
getLogBackupPath(String backupRootDir,
String backupId) |
static BackupManifest |
getManifest(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.Path backupRootPath,
String backupId) |
private static org.apache.hadoop.fs.Path |
getManifestPath(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.Path backupRootPath,
String backupId) |
static String |
getTableBackupDataDir(String backupRootDir,
String backupId,
TableName tableName) |
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 org.apache.hadoop.fs.Path |
getTableBackupPath(TableName tableName,
org.apache.hadoop.fs.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 final org.slf4j.Logger LOG
private HBackupFileSystem()
public static String getTableBackupDir(String backupRootDir, String backupId, TableName tableName)
backupRootDir
- backup root directorybackupId
- backup idtableName
- table namepublic static org.apache.hadoop.fs.Path getBackupTmpDirPath(String backupRootDir)
backupRootDir
- backup rootpublic static org.apache.hadoop.fs.Path getBackupTmpDirPathForBackupId(String backupRoot, String backupId)
backupRoot
- backup rootbackupId
- backup idpublic static String getTableBackupDataDir(String backupRootDir, String backupId, TableName tableName)
public static org.apache.hadoop.fs.Path getBackupPath(String backupRootDir, String backupId)
public static org.apache.hadoop.fs.Path getTableBackupPath(TableName tableName, org.apache.hadoop.fs.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 org.apache.hadoop.fs.Path getLogBackupPath(String backupRootDir, String backupId)
private static org.apache.hadoop.fs.Path getManifestPath(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.Path backupRootPath, String backupId) throws IOException
IOException
public static BackupManifest getManifest(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.Path backupRootPath, String backupId) throws IOException
IOException
public static void checkImageManifestExist(HashMap<TableName,BackupManifest> backupManifestMap, TableName[] tableArray, org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.Path backupRootPath, String backupId) throws IOException
backupManifestMap
- If all the manifests are found, then they are put into this maptableArray
- the tables involvedIOException
- exceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.