Lenses Kafka实用程序正在退出,并显示超时等待消息



我正在使用Lenses box工具运行kafka。步骤如下:

1(安装并运行镜头框:完成

https://docs.lenses.io/dev/lenses-box/index.html#development-环境

http://localhost:3030运行良好,我可以登录并查看管理面板

2(在终端中运行bash-shell命令:Done

sudodocker-rm-it-net=hostlandoop/fast-data-dev-bash-

3(使用CLI创建新主题:出现错误

root@fast-data-dev / $ kafka-topics --create --zookeeper localhost:2181 --replication-factor 1 --partitions 3 --topic my-topic
Exception in thread "main" kafka.zookeeper.ZooKeeperClientTimeoutException: Timed out waiting for connection while in state: CONNECTING
at kafka.zookeeper.ZooKeeperClient.$anonfun$waitUntilConnected$3(ZooKeeperClient.scala:242)
at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:23)
at kafka.utils.CoreUtils$.inLock(CoreUtils.scala:251)
at kafka.zookeeper.ZooKeeperClient.waitUntilConnected(ZooKeeperClient.scala:238)
at kafka.zookeeper.ZooKeeperClient.<init>(ZooKeeperClient.scala:96)
at kafka.zk.KafkaZkClient$.apply(KafkaZkClient.scala:1825)
at kafka.admin.TopicCommand$ZookeeperTopicService$.apply(TopicCommand.scala:262)
at kafka.admin.TopicCommand$.main(TopicCommand.scala:53)
at kafka.admin.TopicCommand.main(TopicCommand.scala)

没有一个kafka实用程序在运行,我错过了什么

已解决

运行

sudo docker exec -it <NAME_OF_YOUR_DOCKER> bash

docker的名称可以在运行lens-box命令时指定,只需添加--name=

最新更新