Class TestBulkLoadReplicationHFileRefs
java.lang.Object
org.apache.hadoop.hbase.replication.TestReplicationBase
org.apache.hadoop.hbase.regionserver.TestBulkLoadReplicationHFileRefs
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.hbase.replication.TestReplicationBase
TestReplicationBase.ReplicationEndpointTest
-
Field Summary
Modifier and TypeFieldDescriptionprivate static org.apache.hadoop.hbase.client.Admin
private static org.apache.hadoop.hbase.client.Admin
private static final org.apache.hadoop.fs.Path
private static final byte[]
private static final byte[]
static final HBaseClassTestRule
private static final String
private static final org.apache.hadoop.hbase.TableName
private static final String
private static final String
private byte[]
private static org.apache.hadoop.hbase.replication.ReplicationQueueStorage
private static final String
private static final org.apache.hadoop.hbase.TableName
private byte[]
static org.junit.rules.TemporaryFolder
private byte[]
Fields inherited from class org.apache.hadoop.hbase.replication.TestReplicationBase
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected 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
protected static void
setupBulkLoadConfigsForCluster
(org.apache.hadoop.conf.Configuration config, String clusterReplicationId) void
teardown()
void
void
void
Methods inherited from class org.apache.hadoop.hbase.replication.TestReplicationBase
addPeer, cleanUp, createTable, getClusterKey, isSerialPeer, isSyncPeer, loadData, loadData, removePeer, restartSourceCluster, runSimplePutDeleteTest, runSmallBatchTest, setUpBase, setupConfig, stopAllRegionServers, tearDownAfterClass, tearDownBase, waitForReplication, waitForReplication
-
Field Details
-
CLASS_RULE
-
PEER1_CLUSTER_ID
- See Also:
-
PEER2_CLUSTER_ID
- See Also:
-
REPLICATE_NAMESPACE
- See Also:
-
NO_REPLICATE_NAMESPACE
- See Also:
-
REPLICATE_TABLE
-
NO_REPLICATE_TABLE
-
CF_A
-
CF_B
-
row
-
qualifier
-
value
-
testFolder
-
BULK_LOAD_BASE_DIR
-
admin1
-
admin2
-
queueStorage
-
-
Constructor Details
-
TestBulkLoadReplicationHFileRefs
public TestBulkLoadReplicationHFileRefs()
-
-
Method Details
-
setUpBeforeClass
- Throws:
Exception
-
setupBulkLoadConfigsForCluster
protected static void setupBulkLoadConfigsForCluster(org.apache.hadoop.conf.Configuration config, String clusterReplicationId) throws Exception - Throws:
Exception
-
setUp
- Throws:
Exception
-
teardown
- Throws:
Exception
-
testWhenExcludeCF
- Throws:
Exception
-
testWhenExcludeTable
- Throws:
Exception
-
testWhenExcludeNamespace
- Throws:
Exception
-
bulkLoadOnCluster
protected void bulkLoadOnCluster(org.apache.hadoop.hbase.TableName tableName, byte[] family) throws Exception - Throws:
Exception
-
createHFileForFamilies
- Throws:
IOException
-
copyToHdfs
private void copyToHdfs(byte[] family, String bulkLoadFilePath, org.apache.hadoop.hdfs.MiniDFSCluster cluster) throws Exception - Throws:
Exception
-
createTableOnClusters
private void createTableOnClusters(org.apache.hadoop.hbase.TableName tableName, byte[]... cfs) throws IOException - Throws:
IOException
-