Class TestSyncTable
java.lang.Object
org.apache.hadoop.hbase.mapreduce.TestSyncTable
Basic test for the SyncTable M/R tool
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private static final org.slf4j.Logger
org.junit.rules.TestName
private static final HBaseTestingUtility
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
private void
assertEqualTables
(int expectedRows, org.apache.hadoop.hbase.TableName sourceTableName, org.apache.hadoop.hbase.TableName targetTableName, boolean ignoreTimestamps) private void
assertTargetDoDeletesFalse
(int expectedRows, org.apache.hadoop.hbase.TableName sourceTableName, org.apache.hadoop.hbase.TableName targetTableName) private void
assertTargetDoPutsFalse
(int expectedRows, org.apache.hadoop.hbase.TableName sourceTableName, org.apache.hadoop.hbase.TableName targetTableName) static void
private static byte[][]
generateSplits
(int numRows, int numRegions) private void
hashSourceTable
(org.apache.hadoop.hbase.TableName sourceTableName, org.apache.hadoop.fs.Path testDir, String... options) private org.apache.hadoop.mapreduce.Counters
syncTables
(org.apache.hadoop.hbase.TableName sourceTableName, org.apache.hadoop.hbase.TableName targetTableName, org.apache.hadoop.fs.Path testDir, String... options) void
void
void
void
private void
writeTestData
(org.apache.hadoop.hbase.TableName sourceTableName, org.apache.hadoop.hbase.TableName targetTableName, long... timestamps)
-
Field Details
-
CLASS_RULE
-
LOG
-
TEST_UTIL
-
name
-
-
Constructor Details
-
TestSyncTable
public TestSyncTable()
-
-
Method Details
-
beforeClass
- Throws:
Exception
-
afterClass
- Throws:
Exception
-
generateSplits
-
testSyncTable
- Throws:
Exception
-
testSyncTableDoDeletesFalse
- Throws:
Exception
-
testSyncTableDoPutsFalse
- Throws:
Exception
-
testSyncTableIgnoreTimestampsTrue
- Throws:
Exception
-
assertEqualTables
private void assertEqualTables(int expectedRows, org.apache.hadoop.hbase.TableName sourceTableName, org.apache.hadoop.hbase.TableName targetTableName, boolean ignoreTimestamps) throws Exception - Throws:
Exception
-
assertTargetDoDeletesFalse
private void assertTargetDoDeletesFalse(int expectedRows, org.apache.hadoop.hbase.TableName sourceTableName, org.apache.hadoop.hbase.TableName targetTableName) throws Exception - Throws:
Exception
-
assertTargetDoPutsFalse
private void assertTargetDoPutsFalse(int expectedRows, org.apache.hadoop.hbase.TableName sourceTableName, org.apache.hadoop.hbase.TableName targetTableName) throws Exception - Throws:
Exception
-
syncTables
private org.apache.hadoop.mapreduce.Counters syncTables(org.apache.hadoop.hbase.TableName sourceTableName, org.apache.hadoop.hbase.TableName targetTableName, org.apache.hadoop.fs.Path testDir, String... options) throws Exception - Throws:
Exception
-
hashSourceTable
private void hashSourceTable(org.apache.hadoop.hbase.TableName sourceTableName, org.apache.hadoop.fs.Path testDir, String... options) throws Exception - Throws:
Exception
-
writeTestData
private void writeTestData(org.apache.hadoop.hbase.TableName sourceTableName, org.apache.hadoop.hbase.TableName targetTableName, long... timestamps) throws Exception - Throws:
Exception
-