hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apurt...@apache.org
Subject [3/4] hbase git commit: HBASE-19173 Configure IntegrationTestRSGroup automatically for minicluster mode
Date Sat, 04 Nov 2017 06:30:59 GMT
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/ac6b998a
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/ac6b998a
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/ac6b998a

Branch: refs/heads/master
Commit: ac6b998afe033cbb6a307d249c8e18bb97d54c9f
Parents: 888e584
Author: Andrew Purtell <apurtell@apache.org>
Authored: Fri Nov 3 17:38:32 2017 -0700
Committer: Andrew Purtell <apurtell@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/ac6b998a/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();


Mime
View raw message