Package org.apache.hadoop.hbase.backup
Class TestBackupRestoreWithModifications
java.lang.Object
org.apache.hadoop.hbase.backup.TestBackupRestoreWithModifications
-
Field Summary
Modifier and TypeFieldDescriptionprivate List<org.apache.hadoop.hbase.TableName>
private static final org.apache.hadoop.fs.Path
static final HBaseClassTestRule
private static org.apache.hadoop.hbase.testing.TestingHBaseCluster
private static final byte[]
private static final org.slf4j.Logger
private org.apache.hadoop.hbase.TableName
private org.apache.hadoop.hbase.TableName
boolean
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
private String
backup
(org.apache.hadoop.hbase.backup.BackupType backupType, List<org.apache.hadoop.hbase.TableName> tables) static void
private void
createTable
(org.apache.hadoop.hbase.TableName tableName) data()
private void
hFileBulkLoad
(org.apache.hadoop.hbase.TableName tableName, Instant timestamp, String data) private void
private void
private void
restore
(String backupId, org.apache.hadoop.hbase.TableName sourceTableName, org.apache.hadoop.hbase.TableName targetTableName) void
setUp()
void
private void
validateDataEquals
(org.apache.hadoop.hbase.TableName tableName, String expectedData)
-
Field Details
-
LOG
-
CLASS_RULE
-
useBulkLoad
-
sourceTable
-
targetTable
-
allTables
-
cluster
-
BACKUP_ROOT_DIR
-
COLUMN_FAMILY
-
-
Constructor Details
-
TestBackupRestoreWithModifications
public TestBackupRestoreWithModifications()
-
-
Method Details
-
data
-
beforeClass
- Throws:
Exception
-
afterClass
- Throws:
Exception
-
setUp
- Throws:
Exception
-
testModificationsOnTable
- Throws:
Exception
-
createTable
- Throws:
IOException
-
load
private void load(org.apache.hadoop.hbase.TableName tableName, Instant timestamp, String data) throws IOException - Throws:
IOException
-
putLoad
private void putLoad(org.apache.hadoop.hbase.TableName tableName, Instant timestamp, String data) throws IOException - Throws:
IOException
-
hFileBulkLoad
private void hFileBulkLoad(org.apache.hadoop.hbase.TableName tableName, Instant timestamp, String data) throws IOException - Throws:
IOException
-
backup
private String backup(org.apache.hadoop.hbase.backup.BackupType backupType, List<org.apache.hadoop.hbase.TableName> tables) throws IOException - Throws:
IOException
-
restore
private void restore(String backupId, org.apache.hadoop.hbase.TableName sourceTableName, org.apache.hadoop.hbase.TableName targetTableName) throws IOException - Throws:
IOException
-
validateDataEquals
private void validateDataEquals(org.apache.hadoop.hbase.TableName tableName, String expectedData) throws IOException - Throws:
IOException
-