Class TestCopyTable
java.lang.Object
org.apache.hadoop.hbase.mapreduce.CopyTableTestBase
org.apache.hadoop.hbase.mapreduce.TestCopyTable
Basic test for the CopyTable M/R tool
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRuleorg.junit.rules.TestNameprivate static final HBaseTestingUtilFields inherited from class org.apache.hadoop.hbase.mapreduce.CopyTableTestBase
FAMILY_A, FAMILY_A_STRING, FAMILY_B, FAMILY_B_STRING, QUALIFIER, ROW1, ROW2 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voidprotected org.apache.hadoop.hbase.client.TablecreateSourceTable(org.apache.hadoop.hbase.client.TableDescriptor desc) private org.apache.hadoop.hbase.client.TablecreateTable(org.apache.hadoop.hbase.TableName tableName, byte[] family, boolean isMob) protected org.apache.hadoop.hbase.client.TablecreateTargetTable(org.apache.hadoop.hbase.client.TableDescriptor desc) protected voiddropSourceTable(org.apache.hadoop.hbase.TableName tableName) protected voiddropTargetTable(org.apache.hadoop.hbase.TableName tableName) protected String[]voidSimple end-to-end testprivate voidtestCopyTableBySnapshot(String tablePrefix, boolean bulkLoad, boolean isMob) voidSimple end-to-end test with bulkload.voidSimple end-to-end test with bulkload on table with MOB.voidSimple end-to-end test on table with MOBvoidvoidvoidvoidvoidvoidvoidTest main method of CopyTable.voidTest copy of table from sourceTable to targetTable all rows from family avoidvoidMethods inherited from class org.apache.hadoop.hbase.mapreduce.CopyTableTestBase
doCopyTableTest, doCopyTableTestWithMob, loadData, runCopy, testRenameFamily, testStartStopRow, verifyRows
-
Field Details
-
CLASS_RULE
-
TEST_UTIL
-
name
-
-
Constructor Details
-
TestCopyTable
public TestCopyTable()
-
-
Method Details
-
beforeClass
- Throws:
Exception
-
afterClass
- Throws:
Exception
-
createSourceTable
protected org.apache.hadoop.hbase.client.Table createSourceTable(org.apache.hadoop.hbase.client.TableDescriptor desc) throws Exception - Specified by:
createSourceTablein classCopyTableTestBase- Throws:
Exception
-
createTargetTable
protected org.apache.hadoop.hbase.client.Table createTargetTable(org.apache.hadoop.hbase.client.TableDescriptor desc) throws Exception - Specified by:
createTargetTablein classCopyTableTestBase- Throws:
Exception
-
dropSourceTable
- Specified by:
dropSourceTablein classCopyTableTestBase- Throws:
Exception
-
dropTargetTable
- Specified by:
dropTargetTablein classCopyTableTestBase- Throws:
Exception
-
getPeerClusterOptions
- Specified by:
getPeerClusterOptionsin classCopyTableTestBase- Throws:
Exception
-
testCopyTable
Simple end-to-end test- Throws:
Exception
-
testCopyTableWithBulkload
Simple end-to-end test with bulkload.- Throws:
Exception
-
testCopyTableWithMob
Simple end-to-end test on table with MOB- Throws:
Exception
-
testCopyTableWithBulkloadWithMob
Simple end-to-end test with bulkload on table with MOB.- Throws:
Exception
-
testStartStopRow
- Throws:
Exception
-
testRenameFamily
Test copy of table from sourceTable to targetTable all rows from family a- Throws:
Exception
-
testMainMethod
Test main method of CopyTable.- Throws:
Exception
-
createTable
private org.apache.hadoop.hbase.client.Table createTable(org.apache.hadoop.hbase.TableName tableName, byte[] family, boolean isMob) throws IOException - Throws:
IOException
-
testCopyTableBySnapshot
private void testCopyTableBySnapshot(String tablePrefix, boolean bulkLoad, boolean isMob) throws Exception - Throws:
Exception
-
testLoadingSnapshotToTable
- Throws:
Exception
-
testLoadingTtlExpiredSnapshotToTable
- Throws:
Exception
-
tsetLoadingSnapshotToMobTable
- Throws:
Exception
-
testLoadingSnapshotAndBulkLoadToTable
- Throws:
Exception
-
testLoadingSnapshotAndBulkLoadToMobTable
- Throws:
Exception
-
testLoadingSnapshotWithoutSnapshotName
- Throws:
Exception
-
testLoadingSnapshotWithoutDestTable
- Throws:
Exception
-