gpt4 book ai didi

apache-kafka - 如何初始化 Apache-Zookeeper 的白名单?

转载 作者:行者123 更新时间:2023-12-03 23:34:21 27 4
gpt4 key购买 nike

我是 Apache Kafka 的新手。
我已将其安装到 Ubuntu Linux VM (18.04) 中。
我已经使用默认配置从 Kafka 目录启动了 Zookeeper。
Apache Kafka Startup
Zookeeper 看起来启动成功了。
从另一个终端窗口我试图测试。
我正在使用 Telnet 连接到它并尝试发送“stat”命令。
当我这样做时,我收到以下错误消息:
Zookeeper Error Message
我是 Apache/kafka 的新手,Linux 经验有限。
我用谷歌搜索,但我不太清楚如何更新白名单。
我从 Zookeeper 文档中找到了以下片段:

4lw.commands.whitelist (Java system property:zookeeper.4lw.commands.whitelist)

New in 3.4.10: This property contains a list of comma separated FourLetter Words commands. It is introduced to provide fine grainedcontrol over the set of commands ZooKeeper can execute, so users canturn off certain commands if necessary. By default it contains allsupported four letter word commands except "wchp" and "wchc", if theproperty is not specified. If the property is specified, then onlycommands listed in the whitelist are enabled.

Here's an example of the configuration that enables stat, ruok, conf,and isro command while disabling the rest of Four Letter Wordscommand:4lw.commands.whitelist=stat, ruok, conf, isroUsers can also use asterisk option so they don't have to include every command one by one in the list. As an example, thiswill enable all four letter word commands:4lw.commands.whitelist=*


有人可以解释白名单的用法以及如何正确初始化它吗?
谢谢,约翰B

最佳答案

对我来说,将以下行之一(或变体)添加到 config/zookeeper.properties 文件(在安装文件夹中)有效。

  • 4lw.commands.whitelist=stat, ruok, conf, isro
  • 4lw.commands.whitelist=*
  • 关于apache-kafka - 如何初始化 Apache-Zookeeper 的白名单?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62667788/

    27 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com