Class FullTableBackupClient
java.lang.Object
org.apache.hadoop.hbase.backup.impl.TableBackupClient
org.apache.hadoop.hbase.backup.impl.FullTableBackupClient
Full table backup implementation
-
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
ConstructorsConstructorDescriptionFullTableBackupClient(Connection conn, String backupId, BackupRequest request) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidprivate booleanprivate voidenableTableReplication(Admin admin) voidexecute()Backup request execution.private voidhandleContinuousBackup(Admin admin) private voidhandleNonContinuousBackup(Admin admin) private voidperformBackupSnapshots(Admin admin) private voidprivate voidperformSnapshots(Admin admin) protected voidsnapshotCopy(BackupInfo backupInfo) Do snapshot copy.protected voidsnapshotTable(Admin admin, TableName tableName, String snapshotName) private longstartContinuousWALBackup(Admin admin) private voidprivate voidMethods inherited from class org.apache.hadoop.hbase.backup.impl.TableBackupClient
addManifest, beginBackup, cleanupAndRestoreBackupSystem, cleanupExportSnapshotLog, cleanupTargetDir, completeBackup, deleteSnapshots, failBackup, failStageIf, getAncestors, getMessage, getTestStage, init, obtainBackupMetaDataStr
-
Field Details
-
LOG
-
-
Constructor Details
-
FullTableBackupClient
public FullTableBackupClient() -
FullTableBackupClient
public FullTableBackupClient(Connection conn, String backupId, BackupRequest request) throws IOException - Throws:
IOException
-
-
Method Details
-
snapshotCopy
Do snapshot copy.- Parameters:
backupInfo- backup info- Throws:
IOException- exception
-
execute
Backup request execution.- Specified by:
executein classTableBackupClient- Throws:
IOException- if the execution of the backup fails
-
handleContinuousBackup
- Throws:
IOException
-
handleNonContinuousBackup
- Throws:
IOException
-
performLogRoll
- Throws:
IOException
-
performBackupSnapshots
- Throws:
IOException
-
performSnapshots
- Throws:
IOException
-
updateBackupMetadata
- Throws:
IOException
-
startContinuousWALBackup
- Throws:
IOException
-
enableTableReplication
- Throws:
IOException
-
updateContinuousBackupReplicationPeer
- Throws:
IOException
-
addContinuousBackupReplicationPeer
- Throws:
IOException
-
continuousBackupReplicationPeerExists
- Throws:
IOException
-
snapshotTable
protected void snapshotTable(Admin admin, TableName tableName, String snapshotName) throws IOException - Throws:
IOException
-