public class TestNamespaceReplication extends TestReplicationBase
TestReplicationBase.ReplicationEndpointTest
Modifier and Type | Field and Description |
---|---|
private static org.apache.hadoop.hbase.client.Admin |
admin1 |
private static org.apache.hadoop.hbase.client.Admin |
admin2 |
static HBaseClassTestRule |
CLASS_RULE |
private static org.apache.hadoop.hbase.client.Connection |
connection1 |
private static org.apache.hadoop.hbase.client.Connection |
connection2 |
private static byte[] |
f1Name |
private static byte[] |
f2Name |
private static org.slf4j.Logger |
LOG |
private static String |
ns1 |
private static String |
ns2 |
boolean |
serialPeer |
private static org.apache.hadoop.hbase.TableName |
tabAName |
private static org.apache.hadoop.hbase.TableName |
tabBName |
private static byte[] |
val |
admin, CONF_WITH_LOCALFS, CONF1, CONF2, famName, hbaseAdmin, htable1, htable2, NB_RETRIES, NB_ROWS_IN_BATCH, NB_ROWS_IN_BIG_BATCH, noRepfamName, NUM_SLAVES1, NUM_SLAVES2, PEER_ID2, replicateCount, replicatedEntries, row, SLEEP_TIME, tableName, UTIL1, UTIL2
Constructor and Description |
---|
TestNamespaceReplication() |
Modifier and Type | Method and Description |
---|---|
private void |
delete(org.apache.hadoop.hbase.client.Table source,
byte[] row,
byte[]... families) |
private void |
ensureRowExisted(org.apache.hadoop.hbase.client.Table target,
byte[] row,
byte[]... families) |
private void |
ensureRowNotExisted(org.apache.hadoop.hbase.client.Table target,
byte[] row,
byte[]... families) |
protected boolean |
isSerialPeer() |
static List<Boolean> |
parameters() |
private void |
put(org.apache.hadoop.hbase.client.Table source,
byte[] row,
byte[]... families) |
static void |
setUpBeforeClass() |
static void |
tearDownAfterClass() |
void |
testNamespaceReplication() |
addPeer, cleanUp, configureClusters, createTable, loadData, loadData, removePeer, restartSourceCluster, restartTargetHBaseCluster, runSimplePutDeleteTest, runSmallBatchTest, setUpBase, setupConfig, tearDownBase, waitForReplication, waitForReplication
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
private static final org.apache.hadoop.hbase.TableName tabAName
private static final org.apache.hadoop.hbase.TableName tabBName
private static final byte[] f1Name
private static final byte[] f2Name
private static final byte[] val
private static org.apache.hadoop.hbase.client.Connection connection1
private static org.apache.hadoop.hbase.client.Connection connection2
private static org.apache.hadoop.hbase.client.Admin admin1
private static org.apache.hadoop.hbase.client.Admin admin2
public boolean serialPeer
public TestNamespaceReplication()
protected boolean isSerialPeer()
isSerialPeer
in class TestReplicationBase
public static List<Boolean> parameters()
public static void setUpBeforeClass() throws Exception
Exception
public static void tearDownAfterClass() throws Exception
Exception
public void testNamespaceReplication() throws Exception
Exception
private void put(org.apache.hadoop.hbase.client.Table source, byte[] row, byte[]... families) throws Exception
Exception
private void delete(org.apache.hadoop.hbase.client.Table source, byte[] row, byte[]... families) throws Exception
Exception
private void ensureRowExisted(org.apache.hadoop.hbase.client.Table target, byte[] row, byte[]... families) throws Exception
Exception
private void ensureRowNotExisted(org.apache.hadoop.hbase.client.Table target, byte[] row, byte[]... families) throws Exception
Exception
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.