public class TestBulkLoadReplication extends TestReplicationBase
Modifier and Type | Class and Description |
---|---|
static class |
TestBulkLoadReplication.BulkReplicationTestObserver |
TestReplicationBase.ReplicationEndpointTest
Modifier and Type | Field and Description |
---|---|
private static org.apache.hadoop.fs.Path |
BULK_LOAD_BASE_DIR |
private static CountDownLatch |
BULK_LOAD_LATCH |
private static AtomicInteger |
BULK_LOADS_COUNT |
static HBaseClassTestRule |
CLASS_RULE |
protected static org.apache.hadoop.conf.Configuration |
CONF3 |
protected static org.slf4j.Logger |
LOG |
org.junit.rules.TestName |
name |
private static String |
PEER_ID1 |
private static String |
PEER_ID3 |
private static String |
PEER1_CLUSTER_ID |
private static String |
PEER2_CLUSTER_ID |
private static String |
PEER3_CLUSTER_ID |
static org.junit.rules.TemporaryFolder |
testFolder |
protected static HBaseTestingUtility |
UTIL3 |
admin, CONF_WITH_LOCALFS, CONF1, CONF2, connection1, connection2, 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 |
---|
TestBulkLoadReplication() |
Modifier and Type | Method and Description |
---|---|
protected void |
assertBulkLoadConditions(org.apache.hadoop.hbase.TableName tableName,
byte[] row,
byte[] value,
HBaseTestingUtility utility,
org.apache.hadoop.hbase.client.Table... tables) |
protected void |
assertTableHasValue(org.apache.hadoop.hbase.client.Table table,
byte[] row,
byte[] value) |
protected void |
assertTableNoValue(org.apache.hadoop.hbase.client.Table table,
byte[] row,
byte[] value) |
protected void |
bulkLoadOnCluster(org.apache.hadoop.hbase.TableName tableName,
byte[] row,
byte[] value,
HBaseTestingUtility cluster) |
private void |
copyToHdfs(String bulkLoadFilePath,
org.apache.hadoop.hdfs.MiniDFSCluster cluster) |
private String |
createHFileForFamilies(byte[] row,
byte[] value,
org.apache.hadoop.conf.Configuration clusterConfig) |
private org.apache.hadoop.hbase.replication.ReplicationPeerConfig |
getPeerConfigForCluster(HBaseTestingUtility util) |
void |
setUpBase() |
static void |
setUpBeforeClass() |
protected static void |
setupBulkLoadConfigsForCluster(org.apache.hadoop.conf.Configuration config,
String clusterReplicationId) |
private void |
setupCoprocessor(HBaseTestingUtility cluster) |
private static void |
startThirdCluster() |
void |
tearDownBase() |
void |
testBulkLoadReplicationActiveActive() |
addPeer, cleanUp, createTable, isSerialPeer, loadData, loadData, removePeer, runSimplePutDeleteTest, runSmallBatchTest, setupConfig, tearDownAfterClass, waitForReplication, waitForReplication
public static final HBaseClassTestRule CLASS_RULE
protected static final org.slf4j.Logger LOG
private static final String PEER1_CLUSTER_ID
private static final String PEER2_CLUSTER_ID
private static final String PEER3_CLUSTER_ID
private static final String PEER_ID1
private static final String PEER_ID3
private static AtomicInteger BULK_LOADS_COUNT
private static CountDownLatch BULK_LOAD_LATCH
protected static final HBaseTestingUtility UTIL3
protected static final org.apache.hadoop.conf.Configuration CONF3
private static final org.apache.hadoop.fs.Path BULK_LOAD_BASE_DIR
public org.junit.rules.TestName name
public static org.junit.rules.TemporaryFolder testFolder
public TestBulkLoadReplication()
public static void setUpBeforeClass() throws Exception
Exception
private static void startThirdCluster() throws Exception
Exception
public void setUpBase() throws Exception
setUpBase
in class TestReplicationBase
Exception
private org.apache.hadoop.hbase.replication.ReplicationPeerConfig getPeerConfigForCluster(HBaseTestingUtility util)
private void setupCoprocessor(HBaseTestingUtility cluster)
public void tearDownBase() throws Exception
tearDownBase
in class TestReplicationBase
Exception
protected static void setupBulkLoadConfigsForCluster(org.apache.hadoop.conf.Configuration config, String clusterReplicationId) throws Exception
Exception
public void testBulkLoadReplicationActiveActive() throws Exception
Exception
protected void assertBulkLoadConditions(org.apache.hadoop.hbase.TableName tableName, byte[] row, byte[] value, HBaseTestingUtility utility, org.apache.hadoop.hbase.client.Table... tables) throws Exception
Exception
protected void bulkLoadOnCluster(org.apache.hadoop.hbase.TableName tableName, byte[] row, byte[] value, HBaseTestingUtility cluster) throws Exception
Exception
private void copyToHdfs(String bulkLoadFilePath, org.apache.hadoop.hdfs.MiniDFSCluster cluster) throws Exception
Exception
protected void assertTableHasValue(org.apache.hadoop.hbase.client.Table table, byte[] row, byte[] value) throws Exception
Exception
protected void assertTableNoValue(org.apache.hadoop.hbase.client.Table table, byte[] row, byte[] value) throws Exception
Exception
private String createHFileForFamilies(byte[] row, byte[] value, org.apache.hadoop.conf.Configuration clusterConfig) throws IOException
IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.