HBASE-19173 Configure IntegrationTestRSGroup automatically for minicluster mode
This commit is contained in:
parent
3a8e3704cd
commit
65f620a856
|
@ -21,8 +21,10 @@ package org.apache.hadoop.hbase.rsgroup;
|
||||||
|
|
||||||
import org.apache.commons.logging.Log;
|
import org.apache.commons.logging.Log;
|
||||||
import org.apache.commons.logging.LogFactory;
|
import org.apache.commons.logging.LogFactory;
|
||||||
|
import org.apache.hadoop.hbase.HConstants;
|
||||||
import org.apache.hadoop.hbase.IntegrationTestingUtility;
|
import org.apache.hadoop.hbase.IntegrationTestingUtility;
|
||||||
import org.apache.hadoop.hbase.Waiter;
|
import org.apache.hadoop.hbase.Waiter;
|
||||||
|
import org.apache.hadoop.hbase.coprocessor.CoprocessorHost;
|
||||||
import org.apache.hadoop.hbase.testclassification.IntegrationTests;
|
import org.apache.hadoop.hbase.testclassification.IntegrationTests;
|
||||||
import org.junit.After;
|
import org.junit.After;
|
||||||
import org.junit.Before;
|
import org.junit.Before;
|
||||||
|
@ -43,6 +45,10 @@ public class IntegrationTestRSGroup extends TestRSGroupsBase {
|
||||||
LOG.info("Setting up IntegrationTestRSGroup");
|
LOG.info("Setting up IntegrationTestRSGroup");
|
||||||
LOG.info("Initializing cluster with " + NUM_SLAVES_BASE + " servers");
|
LOG.info("Initializing cluster with " + NUM_SLAVES_BASE + " servers");
|
||||||
TEST_UTIL = new IntegrationTestingUtility();
|
TEST_UTIL = new IntegrationTestingUtility();
|
||||||
|
TEST_UTIL.getConfiguration().set(HConstants.HBASE_MASTER_LOADBALANCER_CLASS,
|
||||||
|
RSGroupBasedLoadBalancer.class.getName());
|
||||||
|
TEST_UTIL.getConfiguration().set(CoprocessorHost.MASTER_COPROCESSOR_CONF_KEY,
|
||||||
|
RSGroupAdminEndpoint.class.getName());
|
||||||
((IntegrationTestingUtility)TEST_UTIL).initializeCluster(NUM_SLAVES_BASE);
|
((IntegrationTestingUtility)TEST_UTIL).initializeCluster(NUM_SLAVES_BASE);
|
||||||
//set shared configs
|
//set shared configs
|
||||||
admin = TEST_UTIL.getAdmin();
|
admin = TEST_UTIL.getAdmin();
|
||||||
|
|
Loading…
Reference in New Issue