Class IncrementalTableBackupClient
java.lang.Object
org.apache.hadoop.hbase.backup.impl.TableBackupClient
org.apache.hadoop.hbase.backup.impl.IncrementalTableBackupClient
Incremental backup implementation. See the
execute method.-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.hbase.backup.impl.TableBackupClient
TableBackupClient.Stage -
Field Summary
FieldsFields inherited from class org.apache.hadoop.hbase.backup.impl.TableBackupClient
BACKUP_CLIENT_IMPL_CLASS, BACKUP_TEST_MODE_STAGE, backupId, backupInfo, backupManager, conf, conn, fs, newTimestamps, tableList -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedIncrementalTableBackupClient(Connection conn, String backupId, BackupRequest request) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprivate voidcopyBulkLoadedFiles(List<String> activeFiles, List<String> archiveFiles) protected voidvoidexecute()Backup request execution.filterMissingFiles(List<String> incrBackupFileList) protected org.apache.hadoop.fs.Pathprotected org.apache.hadoop.fs.Pathprotected static inthandleBulkLoad(List<TableName> sTableList) protected voidincrementalCopyHFiles(String[] files, String backupDest) protected booleanisActiveWalPath(org.apache.hadoop.fs.Path p) Check if a given path is belongs to active WAL directoryprotected booleantableExists(TableName table, Connection conn) private voidupdateFileLists(List<String> activeFiles, List<String> archiveFiles) protected voidwalToHFiles(List<String> dirPaths, List<String> tableList) Methods inherited from class org.apache.hadoop.hbase.backup.impl.TableBackupClient
addManifest, beginBackup, cleanupAndRestoreBackupSystem, cleanupExportSnapshotLog, cleanupTargetDir, completeBackup, deleteSnapshots, failBackup, failStageIf, getMessage, getTestStage, init, obtainBackupMetaDataStr
-
Field Details
-
LOG
-
-
Constructor Details
-
IncrementalTableBackupClient
protected IncrementalTableBackupClient() -
IncrementalTableBackupClient
public IncrementalTableBackupClient(Connection conn, String backupId, BackupRequest request) throws IOException - Throws:
IOException
-
-
Method Details
-
filterMissingFiles
- Throws:
IOException
-
isActiveWalPath
Check if a given path is belongs to active WAL directory- Parameters:
p- path- Returns:
- true, if yes
-
getIndex
-
handleBulkLoad
protected Map<byte[],List<org.apache.hadoop.fs.Path>>[] handleBulkLoad(List<TableName> sTableList) throws IOException - Throws:
IOException
-
copyBulkLoadedFiles
private void copyBulkLoadedFiles(List<String> activeFiles, List<String> archiveFiles) throws IOException - Throws:
IOException
-
updateFileLists
private void updateFileLists(List<String> activeFiles, List<String> archiveFiles) throws IOException - Throws:
IOException
-
execute
Description copied from class:TableBackupClientBackup request execution.- Specified by:
executein classTableBackupClient- Throws:
IOException- if the execution of the backup fails
-
incrementalCopyHFiles
- Throws:
IOException
-
deleteBulkLoadDirectory
- Throws:
IOException
-
convertWALsToHFiles
- Throws:
IOException
-
tableExists
- Throws:
IOException
-
walToHFiles
- Throws:
IOException
-
getBulkOutputDirForTable
-
getBulkOutputDir
-