美文网首页
Unable to connect to zookeeper s

Unable to connect to zookeeper s

作者: sparkle123 | 来源:发表于2018-04-19 22:13 被阅读0次

1.启动zookeeper
2.启动kafka
3.启动kafka-producer
4.启动kafka-consumer
5.生产一些消息
6.kafka-consumer窗口报错

Exception in thread “main” org.I0Itec.zkclient.exception.ZkTimeoutException: Unable to connect to zookeeper server within timeout: 6000

解决办法:
修改$ZK_HOME/conf/zoo.cfg,不要使用hostname,直接使用IP

image.png

相关文章

网友评论

      本文标题:Unable to connect to zookeeper s

      本文链接:https://www.haomeiwen.com/subject/lyvgkftx.html