Class BackupCommands.RepairCommand
java.lang.Object
org.apache.hadoop.conf.Configured
org.apache.hadoop.hbase.backup.impl.BackupCommands.Command
org.apache.hadoop.hbase.backup.impl.BackupCommands.RepairCommand
- All Implemented Interfaces:
org.apache.hadoop.conf.Configurable
- Enclosing class:
- BackupCommands
-
Field Summary
Fields inherited from class org.apache.hadoop.hbase.backup.impl.BackupCommands.Command
cmdline, conn
-
Constructor Summary
ConstructorDescriptionRepairCommand
(org.apache.hadoop.conf.Configuration conf, org.apache.hbase.thirdparty.org.apache.commons.cli.CommandLine cmdline) -
Method Summary
Modifier and TypeMethodDescriptionprivate static void
checkRemoveBackupImages
(org.apache.hadoop.fs.FileSystem fs, String backupRoot, String[] backupIds) void
execute()
protected void
private void
repairFailedBackupDeletionIfAny
(Connection conn, BackupSystemTable sysTable) static void
repairFailedBackupMergeIfAny
(Connection conn, BackupSystemTable sysTable) Methods inherited from class org.apache.hadoop.hbase.backup.impl.BackupCommands.Command
finish, requiresConsistentState, requiresNoActiveSession
Methods inherited from class org.apache.hadoop.conf.Configured
getConf, setConf
-
Constructor Details
-
RepairCommand
RepairCommand(org.apache.hadoop.conf.Configuration conf, org.apache.hbase.thirdparty.org.apache.commons.cli.CommandLine cmdline)
-
-
Method Details
-
execute
- Overrides:
execute
in classBackupCommands.Command
- Throws:
IOException
-
repairFailedBackupDeletionIfAny
private void repairFailedBackupDeletionIfAny(Connection conn, BackupSystemTable sysTable) throws IOException - Throws:
IOException
-
repairFailedBackupMergeIfAny
public static void repairFailedBackupMergeIfAny(Connection conn, BackupSystemTable sysTable) throws IOException - Throws:
IOException
-
checkRemoveBackupImages
private static void checkRemoveBackupImages(org.apache.hadoop.fs.FileSystem fs, String backupRoot, String[] backupIds) throws IOException - Throws:
IOException
-
printUsage
- Specified by:
printUsage
in classBackupCommands.Command
-