confluentinc/cp-zookeeper Docker Image和ZooKeeper的四字词白名单
confluentinc/cp-zookeeper Docker Image and ZooKeeper's four letter word whitelist
ZooKeeper 定义了 Java 属性 4lw.commands.whitelist to enable certain four letter word commands. Using Confluent's ZooKeeper Docker 图像,我们如何为此指定值?
在 "docker run" 中,我尝试过:
-e ZOOKEEPER_4LW_COMMANDS_WHITELIST=stat
-e ZOO_4LW_COMMANDS_WHITELIST=stat
但是看日志,这些都没有作用。仅启用 srvr。
参考 Dockerfile 中允许的属性以查看不允许的属性 属性 - https://github.com/confluentinc/cp-docker-images/blob/5.3.1-post/debian/zookeeper/include/etc/confluent/docker/zookeeper.properties.template#L7-L30
备选方案,使用 -e KAFKA_OPTS
通过 -Dzookeeper.4lw.commands.whitelist
传递 Java 属性
ZooKeeper 定义了 Java 属性 4lw.commands.whitelist to enable certain four letter word commands. Using Confluent's ZooKeeper Docker 图像,我们如何为此指定值?
在 "docker run" 中,我尝试过:
-e ZOOKEEPER_4LW_COMMANDS_WHITELIST=stat
-e ZOO_4LW_COMMANDS_WHITELIST=stat
但是看日志,这些都没有作用。仅启用 srvr。
参考 Dockerfile 中允许的属性以查看不允许的属性 属性 - https://github.com/confluentinc/cp-docker-images/blob/5.3.1-post/debian/zookeeper/include/etc/confluent/docker/zookeeper.properties.template#L7-L30
备选方案,使用 -e KAFKA_OPTS
通过 -Dzookeeper.4lw.commands.whitelist