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
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
ConstructorDescriptionFullTableBackupClient
(Connection conn, String backupId, BackupRequest request) -
Method Summary
Modifier and TypeMethodDescriptionvoid
execute()
Backup request execution.protected void
snapshotCopy
(BackupInfo backupInfo) Do snapshot copy.protected void
snapshotTable
(Admin admin, TableName tableName, String snapshotName) 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
-
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:
Exception
- exception
-
execute
Backup request execution.- Specified by:
execute
in classTableBackupClient
- Throws:
IOException
- if the execution of the backup fails
-
snapshotTable
protected void snapshotTable(Admin admin, TableName tableName, String snapshotName) throws IOException - Throws:
IOException
-