You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by ap...@apache.org on 2017/11/04 06:31:00 UTC

[4/4] hbase git commit: HBASE-19173 Configure IntegrationTestRSGroup automatically for minicluster mode

HBASE-19173 Configure IntegrationTestRSGroup automatically for minicluster mode


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/65f620a8
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/65f620a8
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/65f620a8

Branch: refs/heads/branch-2
Commit: 65f620a85698f9c3fdd9b8c8f2fd69f9bb7cf825
Parents: 3a8e370
Author: Andrew Purtell <ap...@apache.org>
Authored: Fri Nov 3 17:38:32 2017 -0700
Committer: Andrew Purtell <ap...@apache.org>
Committed: Fri Nov 3 23:30:54 2017 -0700

----------------------------------------------------------------------
 .../apache/hadoop/hbase/rsgroup/IntegrationTestRSGroup.java    | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/65f620a8/hbase-it/src/test/java/org/apache/hadoop/hbase/rsgroup/IntegrationTestRSGroup.java
----------------------------------------------------------------------
diff --git a/hbase-it/src/test/java/org/apache/hadoop/hbase/rsgroup/IntegrationTestRSGroup.java b/hbase-it/src/test/java/org/apache/hadoop/hbase/rsgroup/IntegrationTestRSGroup.java
index 5c099c8..b10e54a 100644
--- a/hbase-it/src/test/java/org/apache/hadoop/hbase/rsgroup/IntegrationTestRSGroup.java
+++ b/hbase-it/src/test/java/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;
@@ -43,6 +45,10 @@ public class IntegrationTestRSGroup extends TestRSGroupsBase {
       LOG.info("Setting up IntegrationTestRSGroup");
       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.getAdmin();