hbase-commits mailing list archives

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

Branch: refs/heads/branch-1.4
Commit: 4d7c40af9b7fb8945b0ce582e8d5b322e7d91fc5
Parents: 28c7315
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:27:56 2017 -0700

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


http://git-wip-us.apache.org/repos/asf/hbase/blob/4d7c40af/hbase-it/src/test/rsgroup/org/apache/hadoop/hbase/rsgroup/IntegrationTestRSGroup.java
----------------------------------------------------------------------
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 e5bb995..622811c 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();


Mime
View raw message