public class TestBulkLoadReplicationHFileRefs 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 |
private static org.apache.hadoop.fs.Path |
BULK_LOAD_BASE_DIR |
private static byte[] |
CF_A |
private static byte[] |
CF_B |
static HBaseClassTestRule |
CLASS_RULE |
private static String |
NO_REPLICATE_NAMESPACE |
private static org.apache.hadoop.hbase.TableName |
NO_REPLICATE_TABLE |
private static String |
PEER1_CLUSTER_ID |
private static String |
PEER2_CLUSTER_ID |
private byte[] |
qualifier |
private static org.apache.hadoop.hbase.replication.ReplicationQueueStorage |
queueStorage |
private static String |
REPLICATE_NAMESPACE |
private static org.apache.hadoop.hbase.TableName |
REPLICATE_TABLE |
private byte[] |
row |
static org.junit.rules.TemporaryFolder |
testFolder |
private byte[] |
value |
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, SLEEP_TIME, tableName, UTIL1, UTIL2
Constructor and Description |
---|
TestBulkLoadReplicationHFileRefs() |
Modifier and Type | Method and Description |
---|---|
protected void |
bulkLoadOnCluster(org.apache.hadoop.hbase.TableName tableName,
byte[] family) |
private void |
copyToHdfs(byte[] family,
String bulkLoadFilePath,
org.apache.hadoop.hdfs.MiniDFSCluster cluster) |
private String |
createHFileForFamilies(byte[] family) |
private void |
createTableOnClusters(org.apache.hadoop.hbase.TableName tableName,
byte[]... cfs) |
void |
setUp() |
static void |
setUpBeforeClass() |
protected static void |
setupBulkLoadConfigsForCluster(org.apache.hadoop.conf.Configuration config,
String clusterReplicationId) |
void |
teardown() |
void |
testWhenExcludeCF() |
void |
testWhenExcludeNamespace() |
void |
testWhenExcludeTable() |
addPeer, cleanUp, createTable, isSerialPeer, loadData, loadData, removePeer, runSimplePutDeleteTest, runSmallBatchTest, setUpBase, setupConfig, tearDownAfterClass, tearDownBase, waitForReplication, waitForReplication
public static final HBaseClassTestRule CLASS_RULE
private static final String PEER1_CLUSTER_ID
private static final String PEER2_CLUSTER_ID
private static final String REPLICATE_NAMESPACE
private static final String NO_REPLICATE_NAMESPACE
private static final org.apache.hadoop.hbase.TableName REPLICATE_TABLE
private static final org.apache.hadoop.hbase.TableName NO_REPLICATE_TABLE
private static final byte[] CF_A
private static final byte[] CF_B
private byte[] row
private byte[] qualifier
private byte[] value
public static org.junit.rules.TemporaryFolder testFolder
private static final org.apache.hadoop.fs.Path BULK_LOAD_BASE_DIR
private static org.apache.hadoop.hbase.client.Admin admin1
private static org.apache.hadoop.hbase.client.Admin admin2
private static org.apache.hadoop.hbase.replication.ReplicationQueueStorage queueStorage
public TestBulkLoadReplicationHFileRefs()
public static void setUpBeforeClass() throws Exception
Exception
protected static void setupBulkLoadConfigsForCluster(org.apache.hadoop.conf.Configuration config, String clusterReplicationId) throws Exception
Exception
public void testWhenExcludeCF() throws Exception
Exception
public void testWhenExcludeTable() throws Exception
Exception
public void testWhenExcludeNamespace() throws Exception
Exception
protected void bulkLoadOnCluster(org.apache.hadoop.hbase.TableName tableName, byte[] family) throws Exception
Exception
private String createHFileForFamilies(byte[] family) throws IOException
IOException
private void copyToHdfs(byte[] family, String bulkLoadFilePath, org.apache.hadoop.hdfs.MiniDFSCluster cluster) throws Exception
Exception
private void createTableOnClusters(org.apache.hadoop.hbase.TableName tableName, byte[]... cfs) throws IOException
IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.