Class CopyTableToPeerClusterTestBase
java.lang.Object
org.apache.hadoop.hbase.mapreduce.CopyTableTestBase
org.apache.hadoop.hbase.mapreduce.CopyTableToPeerClusterTestBase
- Direct Known Subclasses:
TestCopyTableToPeerClusterWithClusterKey
,TestCopyTableToPeerClusterWithRpcUri
,TestCopyTableToPeerClusterWithZkUri
Test CopyTable between clusters
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final HBaseTestingUtil
protected static final HBaseTestingUtil
Fields inherited from class org.apache.hadoop.hbase.mapreduce.CopyTableTestBase
FAMILY_A, FAMILY_A_STRING, FAMILY_B, FAMILY_B_STRING, name, QUALIFIER, ROW1, ROW2
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
static void
protected org.apache.hadoop.hbase.client.Table
createSourceTable
(org.apache.hadoop.hbase.client.TableDescriptor desc) protected org.apache.hadoop.hbase.client.Table
createTargetTable
(org.apache.hadoop.hbase.client.TableDescriptor desc) protected void
dropSourceTable
(org.apache.hadoop.hbase.TableName tableName) protected void
dropTargetTable
(org.apache.hadoop.hbase.TableName tableName) protected String[]
void
void
Simple end-to-end testvoid
Simple end-to-end test on table with MOBvoid
Test copy of table from sourceTable to targetTable all rows from family avoid
void
Methods inherited from class org.apache.hadoop.hbase.mapreduce.CopyTableTestBase
doCopyTableTest, doCopyTableTestWithMob, loadData, runCopy, testRenameFamily, testStartStopRow, verifyRows
-
Field Details
-
UTIL1
-
UTIL2
-
-
Constructor Details
-
CopyTableToPeerClusterTestBase
public CopyTableToPeerClusterTestBase()
-
-
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:
createSourceTable
in classCopyTableTestBase
- Throws:
Exception
-
createTargetTable
protected org.apache.hadoop.hbase.client.Table createTargetTable(org.apache.hadoop.hbase.client.TableDescriptor desc) throws Exception - Specified by:
createTargetTable
in classCopyTableTestBase
- Throws:
Exception
-
dropSourceTable
- Specified by:
dropSourceTable
in classCopyTableTestBase
- Throws:
Exception
-
dropTargetTable
- Specified by:
dropTargetTable
in classCopyTableTestBase
- Throws:
Exception
-
getPeerClusterOptions
- Specified by:
getPeerClusterOptions
in classCopyTableTestBase
- Throws:
Exception
-
testCopyTable
Simple end-to-end test- Throws:
Exception
-
testCopyTableWithMob
Simple end-to-end test 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
-
testBulkLoadNotSupported
- Throws:
Exception
-
testSnapshotNotSupported
- Throws:
Exception
-