【问题标题】:Unexpected behavior while using kafka commands in CLI在 CLI 中使用 kafka 命令时出现意外行为
【发布时间】:2022-02-03 15:20:05
【问题描述】:

我正在尝试了解Kafka CLI。但是当我运行下面的cmds 时,我看不到任何输出。就好像 cmds 一开始就没有被识别。下面是我的server.propertieszookeeper.properties。我错过了什么吗?我正在使用 kafka 2.8.0 版

kafka-topics.sh  // opens up another cmd terminal but nothing shows up in there
kafka-topics.bat // It just moves to next line, without any output

server.properties

listeners=PLAINTEXT://:9092
log.dirs=D:/Tools/kafka_2.13-2.8.0/data/kafka

其余所有属性不变,我没有更改任何内容

zookeeper.properties

dataDir=D:/Tools/kafka_2.13-2.8.0/data/zookeeper

另外,kafka 和 ZK 都在各自的端口上运行

【问题讨论】:

标签: java apache-kafka apache-zookeeper


【解决方案1】:

尝试将 Kafka 的目录名称从 kafka_2.13-2.8.0 更改为 kafka 并尝试运行 zookeeper 和 kafka 。由于某些原因,Windows 将 kafka_2.13-2.8.0 视为长名称并关闭 CLI。

在所有属性文件中也进行相同的更改。

【讨论】:

    猜你喜欢
    • 2021-04-13
    • 2013-08-11
    • 2015-05-04
    • 1970-01-01
    • 1970-01-01
    • 2019-12-31
    • 1970-01-01
    • 2015-07-22
    • 2021-09-14
    相关资源
    最近更新 更多