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
Fields 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
ModifierConstructorDescriptionprotected
IncrementalTableBackupClient
(Connection conn, String backupId, BackupRequest request) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
private void
copyBulkLoadedFiles
(List<String> activeFiles, List<String> archiveFiles) protected void
void
execute()
Backup request execution.filterMissingFiles
(List<String> incrBackupFileList) protected org.apache.hadoop.fs.Path
protected org.apache.hadoop.fs.Path
protected static int
handleBulkLoad
(List<TableName> sTableList) protected void
incrementalCopyHFiles
(String[] files, String backupDest) protected boolean
isActiveWalPath
(org.apache.hadoop.fs.Path p) Check if a given path is belongs to active WAL directoryprotected boolean
tableExists
(TableName table, Connection conn) private void
updateFileLists
(List<String> activeFiles, List<String> archiveFiles) protected void
walToHFiles
(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:TableBackupClient
Backup request execution.- Specified by:
execute
in 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
-