From bd9906736ef139b410a47799e6bc438a3a367d50 Mon Sep 17 00:00:00 2001 From: stack Date: Wed, 20 Jan 2016 09:32:38 -0800 Subject: [PATCH] HBASE-15098 Normalizer switch in configuration is not used --- .../src/main/java/org/apache/hadoop/hbase/HConstants.java | 4 ---- hbase-common/src/main/resources/hbase-default.xml | 6 ------ .../normalizer/TestSimpleRegionNormalizerOnCluster.java | 1 - 3 files changed, 11 deletions(-) diff --git a/hbase-common/src/main/java/org/apache/hadoop/hbase/HConstants.java b/hbase-common/src/main/java/org/apache/hadoop/hbase/HConstants.java index 6fafad37966..1b71cb453e7 100644 --- a/hbase-common/src/main/java/org/apache/hadoop/hbase/HConstants.java +++ b/hbase-common/src/main/java/org/apache/hadoop/hbase/HConstants.java @@ -134,10 +134,6 @@ public final class HConstants { public static final String HBASE_MASTER_NORMALIZER_CLASS = "hbase.master.normalizer.class"; - /** Config for enabling/disabling pluggable region normalizer */ - public static final String HBASE_NORMALIZER_ENABLED = - "hbase.normalizer.enabled"; - /** Cluster is standalone or pseudo-distributed */ public static final boolean CLUSTER_IS_LOCAL = false; diff --git a/hbase-common/src/main/resources/hbase-default.xml b/hbase-common/src/main/resources/hbase-default.xml index d9a1994096d..eefd327ccfa 100644 --- a/hbase-common/src/main/resources/hbase-default.xml +++ b/hbase-common/src/main/resources/hbase-default.xml @@ -573,12 +573,6 @@ possible configurations would overwhelm and obscure the important. 300000 Period at which the region balancer runs in the Master. - - hbase.normalizer.enabled - false - If set to true, Master will try to keep region size - within each table approximately the same. - hbase.normalizer.period 1800000 diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/master/normalizer/TestSimpleRegionNormalizerOnCluster.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/master/normalizer/TestSimpleRegionNormalizerOnCluster.java index 4bcccc63f97..6ec2e955084 100644 --- a/hbase-server/src/test/java/org/apache/hadoop/hbase/master/normalizer/TestSimpleRegionNormalizerOnCluster.java +++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/master/normalizer/TestSimpleRegionNormalizerOnCluster.java @@ -67,7 +67,6 @@ public class TestSimpleRegionNormalizerOnCluster { public static void beforeAllTests() throws Exception { // we will retry operations when PleaseHoldException is thrown TEST_UTIL.getConfiguration().setInt(HConstants.HBASE_CLIENT_RETRIES_NUMBER, 3); - TEST_UTIL.getConfiguration().setBoolean(HConstants.HBASE_NORMALIZER_ENABLED, true); TEST_UTIL.getConfiguration().setBoolean(QuotaUtil.QUOTA_CONF_KEY, true); // Start a cluster of two regionservers.