From bbc274626748b0b567116a3c7426b194c8a1ad97 Mon Sep 17 00:00:00 2001 From: tedyu Date: Tue, 11 Oct 2016 12:48:14 -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 1794464127e..4523c8a0065 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 @@ -64,6 +64,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; @@ -138,6 +139,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); }