This is an automated email from the ASF dual-hosted git repository.
chesnay pushed a commit to branch release-1.11
in repository https://gitbox.apache.org/repos/asf/flink.git
The following commit(s) were added to refs/heads/release-1.11 by this push:
new 741b8e2 [FLINK-20404][zookeeper] Disable JMX log4j integration
741b8e2 is described below
commit 741b8e2b9536c0160b43b10b922d11e2af7f588c
Author: Chesnay Schepler <[email protected]>
AuthorDate: Thu Dec 3 15:41:06 2020 +0100
[FLINK-20404][zookeeper] Disable JMX log4j integration
---
flink-dist/src/main/flink-bin/bin/zookeeper.sh | 3 +++
1 file changed, 3 insertions(+)
diff --git a/flink-dist/src/main/flink-bin/bin/zookeeper.sh
b/flink-dist/src/main/flink-bin/bin/zookeeper.sh
index 53d7098..9297401 100755
--- a/flink-dist/src/main/flink-bin/bin/zookeeper.sh
+++ b/flink-dist/src/main/flink-bin/bin/zookeeper.sh
@@ -58,6 +58,9 @@ if [[ $STARTSTOP == "start" ]] || [[ $STARTSTOP ==
"start-foreground" ]]; then
args=("--zkConfigFile" "${ZK_CONF}" "--peerId" "${PEER_ID}")
fi
+# the JMX log4j integration in ZK 3.4 does not work log4j 2
+export JVM_ARGS="$JVM_ARGS -Dzookeeper.jmx.log4j.disable=true"
+
if [[ $STARTSTOP == "start-foreground" ]]; then
"${FLINK_BIN_DIR}"/flink-console.sh zookeeper "${args[@]}"
else