【问题标题】:Lenses Kafka utilities are exiting with a timed out waiting messageLenses Kafka 实用程序正在退出并显示超时等待消息
【发布时间】:2020-07-01 04:54:20
【问题描述】:

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

1) 安装并运行镜头盒:完成

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

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

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

sudo docker run --rm -it --net=host landoop/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 实用程序在运行,我错过了什么?

【问题讨论】:

  • FWIW,Docker compose / minikube 的所有组件比单个镜像更灵活

标签: apache-kafka


【解决方案1】:

解决了

运行

sudo docker exec -it <NAME_OF_YOUR_DOCKER> bash

docker的名字可以在运行lens box命令的时候指定,只要加上--name=

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-03-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多