在禁用 Zookeeper 审核后停止工作

After Zookeeper audit is disable Stopped Working

我想安装 Apache Kafka,但在安装 Zookeeper 时卡住了

我提取了所有文件并创建了环境变量,现在它停止工作了 “Zookeeper 审核已禁用。”

点击这些链接后,

  1. https://www.programmersought.com/article/22066571206/
  2. https://zookeeper.apache.org/doc/r3.6.2/zookeeperAuditLogs.html

我更新了两个文件(skServer.cmd 和 conf/zoo.cfg)。在 skServer.cmd 文件中添加一行“-Dzookeeper.audit.enable=true”,在 conf/zoo.cfg.

中添加一行“audit.enable=true”

现在输出已更改为“Zookeeper 审核已启用”。但它仍然没有做任何事情,像以前一样停在那里。

Output after running the zkServer command with files edited

甚至尝试一次更改一个文件,但输出相同但仍然停止工作。

任何人都可以帮助我理解问题并提供解决方案吗? 非常感谢。

zookeeper-server-startzkServer.cmd 不 return,是设计使然。它正在跟踪日志并等待客户端连接

您必须启动第二个终端到 运行 Kafka 代理,as mentioned in the Kafka documentation