Zookeeper 在CLI中使用kafka命令时出现意外行为

ffvjumwh  于 2022-12-09  发布在  Apache
关注(0)|答案(1)|浏览(155)

I am trying to get some hands on Kafka CLI . But when I run the below cmds I am not able to see any outputs. It's as if the cmds are not being recognized in the first place. Below is my server.properties and zookeeper.properties . Am I missing something? I am using kafka version 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

Rest all properties are as it is, I haven't changed anything

zookeeper.properties

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

Also the kafka and ZK both are running on respective ports

wnavrhmk

wnavrhmk1#

尝试将Kafka的目录名从kafka_2.13-2.8.0更改为kafka,并尝试运行zookeeper和Kafka。由于某些原因,windows将kafka_2.13-2.8.0视为长名称并关闭CLI。
在所有属性文件中也进行相同的更改。

相关问题