Class TestCopyTable
java.lang.Object
org.apache.hadoop.hbase.mapreduce.TestCopyTable
Basic test for the CopyTable M/R tool
- 
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRuleprivate static final byte[]private static final Stringprivate static final byte[]private static final Stringorg.junit.rules.TestNameprivate static final byte[]private static final byte[]private static final byte[]private static final HBaseTestingUtility - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voidprivate org.apache.hadoop.hbase.client.TablecreateTable(org.apache.hadoop.hbase.TableName tableName, byte[] family, boolean isMob) private voiddoCopyTableTest(boolean bulkload) private voiddoCopyTableTestWithMob(boolean bulkload) private voidloadData(org.apache.hadoop.hbase.client.Table t, byte[] family, byte[] column) private booleanvoidSimple 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 avoidvoidprivate voidverifyRows(org.apache.hadoop.hbase.client.Table t, byte[] family, byte[] column)  
- 
Field Details
- 
CLASS_RULE
 - 
TEST_UTIL
 - 
ROW1
 - 
ROW2
 - 
FAMILY_A_STRING
- See Also:
 
 - 
FAMILY_B_STRING
- See Also:
 
 - 
FAMILY_A
 - 
FAMILY_B
 - 
QUALIFIER
 - 
name
 
 - 
 - 
Constructor Details
- 
TestCopyTable
public TestCopyTable() 
 - 
 - 
Method Details
- 
beforeClass
- Throws:
 Exception
 - 
afterClass
- Throws:
 Exception
 - 
doCopyTableTest
- Throws:
 Exception
 - 
doCopyTableTestWithMob
- 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
 - 
runCopy
- Throws:
 Exception
 - 
loadData
private void loadData(org.apache.hadoop.hbase.client.Table t, byte[] family, byte[] column) throws IOException - Throws:
 IOException
 - 
verifyRows
private void verifyRows(org.apache.hadoop.hbase.client.Table t, byte[] family, byte[] column) throws IOException - Throws:
 IOException
 - 
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
 - 
tsetLoadingSnapshotToMobTable
- Throws:
 Exception
 - 
testLoadingSnapshotAndBulkLoadToTable
- Throws:
 Exception
 - 
testLoadingSnapshotAndBulkLoadToMobTable
- Throws:
 Exception
 - 
testLoadingSnapshotToRemoteCluster
- Throws:
 Exception
 - 
testLoadingSnapshotWithoutSnapshotName
- Throws:
 Exception
 - 
testLoadingSnapshotWithoutDestTable
- Throws:
 Exception
 
 -