Repository: hbase Updated Branches: refs/heads/branch-1 bf62e30c1 -> bb529b706 refs/heads/branch-1.2 d284eb383 -> 8273dfad5 refs/heads/branch-1.3 3679b403d -> 508b1451d refs/heads/branch-1.4 e10fef4a1 -> 108473893 refs/heads/branch-2 648d58bc2 -> 6dc9f9e6d refs/heads/branch-2.0 c2bbb6283 -> e8da96e9c refs/heads/branch-2.1 5a73a1ab2 -> 1e05c9f3b refs/heads/master ddd30a224 -> 1010992ee
HBASE-21203 TestZKMainServer#testCommandLineWorks won't pass with default 4lw whitelist Recent versions of ZooKeeper whitelist the so-called 4-letter word admin commands, and 'stat' is not in the default whitelist. Set system property zookeeper.4lw.commands.whitelist=* in MiniZooKeeperCluster#setupTestEnv as we do not need to whitelist 4-letter commands for unit tests. Project: http://git-wip-us.apache.org/repos/asf/hbase/repo Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/1010992e Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/1010992e Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/1010992e Branch: refs/heads/master Commit: 1010992ee87f4cf9aec8fbdbcc4dcf1794846251 Parents: ddd30a2 Author: Andrew Purtell <[email protected]> Authored: Mon Sep 17 14:49:31 2018 -0700 Committer: Andrew Purtell <[email protected]> Committed: Fri Sep 21 15:36:54 2018 -0700 ---------------------------------------------------------------------- .../org/apache/hadoop/hbase/zookeeper/MiniZooKeeperCluster.java | 2 ++ 1 file changed, 2 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hbase/blob/1010992e/hbase-zookeeper/src/main/java/org/apache/hadoop/hbase/zookeeper/MiniZooKeeperCluster.java ---------------------------------------------------------------------- diff --git a/hbase-zookeeper/src/main/java/org/apache/hadoop/hbase/zookeeper/MiniZooKeeperCluster.java b/hbase-zookeeper/src/main/java/org/apache/hadoop/hbase/zookeeper/MiniZooKeeperCluster.java index b264563..730d0dd 100644 --- a/hbase-zookeeper/src/main/java/org/apache/hadoop/hbase/zookeeper/MiniZooKeeperCluster.java +++ b/hbase-zookeeper/src/main/java/org/apache/hadoop/hbase/zookeeper/MiniZooKeeperCluster.java @@ -176,6 +176,8 @@ public class MiniZooKeeperCluster { // set env and directly in order to handle static init/gc issues System.setProperty("zookeeper.preAllocSize", "100"); FileTxnLog.setPreallocSize(100 * 1024); + // allow all 4 letter words + System.setProperty("zookeeper.4lw.commands.whitelist","*"); } public int startup(File baseDir) throws IOException, InterruptedException {
