【发布时间】:2022-02-03 15:20:05
【问题描述】:
我正在尝试了解Kafka CLI。但是当我运行下面的cmds 时,我看不到任何输出。就好像 cmds 一开始就没有被识别。下面是我的server.properties 和zookeeper.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 都在各自的端口上运行
【问题讨论】:
-
不要在“Windows”上运行 Kafka。从这里开始confluent.io/blog/set-up-and-run-kafka-on-windows-linux-wsl-2
标签: java apache-kafka apache-zookeeper