public class TestBackupBase extends Object
Modifier and Type | Field and Description |
---|---|
protected static String |
BACKUP_FAILED_NODE |
protected static String |
BACKUP_REMOTE_ROOT_DIR |
protected static String |
BACKUP_ROOT_DIR |
protected static String |
BACKUP_SUCCEED_NODE |
protected static String |
BACKUP_ZNODE |
protected static Configuration |
conf1 |
protected static Configuration |
conf2 |
protected static byte[] |
famName |
protected static int |
NB_ROWS_IN_BATCH |
protected static byte[] |
qualName |
protected static boolean |
secure |
protected static TableName |
table1 |
protected static TableName |
table1_restore |
protected static HTableDescriptor |
table1Desc |
protected static TableName |
table2 |
protected static TableName |
table2_restore |
protected static TableName |
table3 |
protected static TableName |
table3_restore |
protected static TableName |
table4 |
protected static TableName |
table4_restore |
protected static HBaseTestingUtility |
TEST_UTIL |
protected static HBaseTestingUtility |
TEST_UTIL2 |
Constructor and Description |
---|
TestBackupBase() |
Modifier and Type | Method and Description |
---|---|
protected String |
backupTables(BackupType type,
List<TableName> tables,
String path) |
protected boolean |
checkFailed(String backupId) |
protected boolean |
checkSucceeded(String backupId) |
RestoreRequest |
createRestoreRequest(String backupRootDir,
String backupId,
boolean check,
TableName[] fromTables,
TableName[] toTables,
boolean isOverwrite)
Get restore request.
|
protected static void |
createTables() |
protected String |
fullTableBackup(List<TableName> tables) |
protected BackupAdmin |
getBackupAdmin() |
protected String |
incrementalTableBackup(List<TableName> tables) |
protected static void |
loadTable(HTable table) |
static void |
setUpBeforeClass() |
static void |
tearDownAfterClass() |
protected List<TableName> |
toList(String... args)
Helper method
|
static void |
waitForSystemTable(HBaseTestingUtility TEST_UTIL) |
protected static Configuration conf1
protected static Configuration conf2
protected static HBaseTestingUtility TEST_UTIL
protected static HBaseTestingUtility TEST_UTIL2
protected static TableName table1
protected static HTableDescriptor table1Desc
protected static TableName table2
protected static TableName table3
protected static TableName table4
protected static TableName table1_restore
protected static TableName table2_restore
protected static TableName table3_restore
protected static TableName table4_restore
protected static final int NB_ROWS_IN_BATCH
protected static final byte[] qualName
protected static final byte[] famName
protected static String BACKUP_ROOT_DIR
protected static String BACKUP_REMOTE_ROOT_DIR
protected static boolean secure
protected static final String BACKUP_ZNODE
protected static final String BACKUP_SUCCEED_NODE
protected static final String BACKUP_FAILED_NODE
public static void waitForSystemTable(HBaseTestingUtility TEST_UTIL) throws Exception
Exception
protected String backupTables(BackupType type, List<TableName> tables, String path) throws IOException
IOException
protected String fullTableBackup(List<TableName> tables) throws IOException
IOException
protected String incrementalTableBackup(List<TableName> tables) throws IOException
IOException
protected boolean checkSucceeded(String backupId) throws IOException
IOException
protected boolean checkFailed(String backupId) throws IOException
IOException
protected BackupAdmin getBackupAdmin() throws IOException
IOException
public RestoreRequest createRestoreRequest(String backupRootDir, String backupId, boolean check, TableName[] fromTables, TableName[] toTables, boolean isOverwrite)