Error while executing topic command:KeeperErrorCode=NoNode for /brokers/ids
执行创建命令报错:bin/kafka-topics.sh --create --zookeeper 192.168.10.205:2181,192.168.10.206:2181,192.168.10.207:2181 -replication-factor 1 --partitions 1 --topic test同样消费者消费的时候也会有类似问题。提供的报错截图如下:原因:在指定的zookee
·
执行创建命令报错:
bin/kafka-topics.sh --create --zookeeper 192.168.10.205:2181,192.168.10.206:2181,192.168.10.207:2181 -replication-factor 1 --partitions 1 --topic test
同样消费者消费的时候也会有类似问题。提供的报错截图如下:
原因:
在指定的zookeeper目录下未发现brokers/ids,查看kafka的配置文件发现zk的配置中添加了/kafka
,修改命令bin/kafka-topics.sh --create --zookeeper bigdata-205:2181,bigdata-206:2181,bigdata-207:2181/kafka -replication-factor 1 --partitions 1 --topic test
排查思路:
shell进入zk查看zk的目录结构,如:
test@zeek:/opt/kafka2.3$ bin/zookeeper-shell.sh 127.0.0.1:2181
/opt/jdk1.8.0_162/
Connecting to 127.0.0.1:2181
Welcome to ZooKeeper!
JLine support is disabled
WATCHER::
WatchedEvent state:SyncConnected type:None path:null
ls /
[zookeeper, kafka]
更多推荐
已为社区贡献5条内容
所有评论(0)