You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by pv...@apache.org on 2019/09/11 07:59:36 UTC

[hive] 01/02: HIVE-22183: Prepare for ZooKeeper 3.5 upgrade (Peter Vary, reviewed by Adam Szita)

This is an automated email from the ASF dual-hosted git repository.

pvary pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hive.git

commit 848e6939ec617cda1325c76cd536b0fd5db61945
Author: Peter Vary <pv...@cloudera.com>
AuthorDate: Tue Sep 10 13:44:55 2019 +0200

    HIVE-22183: Prepare for ZooKeeper 3.5 upgrade (Peter Vary, reviewed by Adam Szita)
---
 ql/src/test/org/apache/hive/testutils/MiniZooKeeperCluster.java | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/ql/src/test/org/apache/hive/testutils/MiniZooKeeperCluster.java b/ql/src/test/org/apache/hive/testutils/MiniZooKeeperCluster.java
index ca01a7f..646c1c1 100644
--- a/ql/src/test/org/apache/hive/testutils/MiniZooKeeperCluster.java
+++ b/ql/src/test/org/apache/hive/testutils/MiniZooKeeperCluster.java
@@ -168,6 +168,9 @@ class MiniZooKeeperCluster {
 
   // / XXX: From o.a.zk.t.ClientBase
   private static void setupTestEnv() {
+    // With ZooKeeper 3.5 we need to whitelist the 4 letter commands we use
+    System.setProperty("zookeeper.4lw.commands.whitelist", "*");
+
     // during the tests we run with 100K prealloc in the logs.
     // on windows systems prealloc of 64M was seen to take ~15seconds
     // resulting in test failure (client timeout on first session).