Package org.apache.hadoop.hbase.client
Class TestAsyncReplicationAdminApiWithClusters
java.lang.Object
org.apache.hadoop.hbase.client.AbstractTestUpdateConfiguration
org.apache.hadoop.hbase.client.TestAsyncAdminBase
org.apache.hadoop.hbase.client.TestAsyncReplicationAdminApiWithClusters
Class to test asynchronous replication admin operations when more than 1 cluster
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static org.apache.hadoop.hbase.client.AsyncAdminstatic final HBaseClassTestRuleprivate static org.apache.hadoop.conf.Configurationprivate static org.apache.hadoop.hbase.client.AsyncConnectionprivate static final Stringprivate static HBaseTestingUtil -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidcleanupTables(org.apache.hadoop.hbase.client.AsyncAdmin admin, Pattern pattern) static voidclearUp()private voidcreateTableWithDefaultConf(org.apache.hadoop.hbase.client.AsyncAdmin admin, org.apache.hadoop.hbase.TableName tableName) static voidvoidtearDown()voidvoidvoidvoidvoidvoidvoidvoidMethods inherited from class org.apache.hadoop.hbase.client.TestAsyncAdminBase
createTableWithDefaultConf, createTableWithDefaultConf, createTableWithDefaultConf, createTableWithDefaultConf, createTableWithDefaultConf, createTableWithDefaultConf, params, setUp, tearDownAfterClassMethods inherited from class org.apache.hadoop.hbase.client.AbstractTestUpdateConfiguration
addResourceToRegionServerConfiguration, replaceHBaseSiteXML, restoreHBaseSiteXML, setUpConfigurationFiles
-
Field Details
-
CLASS_RULE
-
ID_SECOND
- See Also:
-
TEST_UTIL2
-
conf2
-
admin2
-
connection
-
-
Constructor Details
-
TestAsyncReplicationAdminApiWithClusters
-
-
Method Details
-
setUpBeforeClass
- Throws:
Exception
-
clearUp
- Throws:
IOException
-
tearDown
- Overrides:
tearDownin classTestAsyncAdminBase- Throws:
Exception
-
cleanupTables
-
createTableWithDefaultConf
private void createTableWithDefaultConf(org.apache.hadoop.hbase.client.AsyncAdmin admin, org.apache.hadoop.hbase.TableName tableName) -
testEnableAndDisableTableReplication
- Throws:
Exception
-
testEnableReplicationWhenSlaveClusterDoesntHaveTable
- Throws:
Exception
-
testEnableReplicationWhenTableDescriptorIsNotSameInClusters
- Throws:
Exception
-
testDisableReplicationForNonExistingTable
- Throws:
Exception
-
testEnableReplicationForNonExistingTable
- Throws:
Exception
-
testDisableReplicationWhenTableNameAsNull
- Throws:
Exception
-
testEnableReplicationWhenTableNameAsNull
- Throws:
Exception
-
testEnableReplicationForExplicitSetTableCfs
- Throws:
Exception
-