From 408a9eb8a303e9f0db5eecaa77c30f28ff521d07 Mon Sep 17 00:00:00 2001 From: tedyu Date: Tue, 11 Oct 2016 12:50:05 -0700 Subject: [PATCH] HBASE-16803 Make hbase:acl table unsplittable --- .../hadoop/hbase/security/access/AccessControlLists.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/security/access/AccessControlLists.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/security/access/AccessControlLists.java index 50d575ebae3..b20c110b447 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/security/access/AccessControlLists.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/security/access/AccessControlLists.java @@ -62,6 +62,7 @@ import org.apache.hadoop.hbase.master.MasterServices; import org.apache.hadoop.hbase.protobuf.ProtobufUtil; import org.apache.hadoop.hbase.protobuf.generated.AccessControlProtos; import org.apache.hadoop.hbase.regionserver.BloomType; +import org.apache.hadoop.hbase.regionserver.DisabledRegionSplitPolicy; import org.apache.hadoop.hbase.regionserver.InternalScanner; import org.apache.hadoop.hbase.regionserver.Region; import org.apache.hadoop.hbase.security.User; @@ -136,6 +137,8 @@ public class AccessControlLists { // Set cache data blocks in L1 if more than one cache tier deployed; e.g. this will // be the case if we are using CombinedBlockCache (Bucket Cache). .setCacheDataInL1(true)); + ACL_TABLEDESC.setValue(HTableDescriptor.SPLIT_POLICY, + DisabledRegionSplitPolicy.class.getName()); master.createSystemTable(ACL_TABLEDESC); }