From 51b65707b35a444b68a2375e69162b50969deb1c Mon Sep 17 00:00:00 2001 From: Andrew Purtell Date: Fri, 3 Nov 2017 17:38:32 -0700 Subject: [PATCH] HBASE-19173 Configure IntegrationTestRSGroup automatically for minicluster mode --- .../apache/hadoop/hbase/rsgroup/IntegrationTestRSGroup.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/hbase-it/src/test/rsgroup/org/apache/hadoop/hbase/rsgroup/IntegrationTestRSGroup.java b/hbase-it/src/test/rsgroup/org/apache/hadoop/hbase/rsgroup/IntegrationTestRSGroup.java index e5bb9951856..622811c1a86 100644 --- a/hbase-it/src/test/rsgroup/org/apache/hadoop/hbase/rsgroup/IntegrationTestRSGroup.java +++ b/hbase-it/src/test/rsgroup/org/apache/hadoop/hbase/rsgroup/IntegrationTestRSGroup.java @@ -21,8 +21,10 @@ package org.apache.hadoop.hbase.rsgroup; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; +import org.apache.hadoop.hbase.HConstants; import org.apache.hadoop.hbase.IntegrationTestingUtility; import org.apache.hadoop.hbase.Waiter; +import org.apache.hadoop.hbase.coprocessor.CoprocessorHost; import org.apache.hadoop.hbase.testclassification.IntegrationTests; import org.junit.After; import org.junit.Before; @@ -45,6 +47,10 @@ public class IntegrationTestRSGroup extends TestRSGroupsBase { LOG.info("Setting up IntegrationTestGroup"); LOG.info("Initializing cluster with " + NUM_SLAVES_BASE + " servers"); 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); //set shared configs admin = TEST_UTIL.getHBaseAdmin();