本文介绍了有 Docker 问题的 Kafka的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试通过 docker-compose 文件或什至通过安装 kafka 映像并手动运行来部署 kafka.当我开始运行 kafka 服务器(代理)

I am trying to deploy kafka by docker-compose file or evenby installing kafka image and run it manually. Both of these steps are giving to me that error when I start to run kafka server(broker)

INFO 发起客户端连接,connectString=188.226.151.167:2181 sessionTimeout=6000 watcher=org.I0Itec.zkclient.ZkClient@323b36e0 (org.apache.zookeeper.ZooKeeper)[2017-05-16 13:44:49,903] INFO 等待 keeper 状态 SyncConnected (org.I0Itec.zkclient.ZkClient)[2017-05-16 13:44:49,909] INFO 打开到服务器 188.226.151.167/188.226.151.167:2181 的套接字连接.不会尝试使用 SASL 进行身份验证(未知错误)(org.apache.zookeeper.ClientCnxn)[2017-05-16 13:44:55,904] INFO 终止 ZkClient 事件线程.(org.I0Itec.zkclient.ZkEventThread)

INFO Initiating client connection, connectString=188.226.151.167:2181 sessionTimeout=6000 watcher=org.I0Itec.zkclient.ZkClient@323b36e0 (org.apache.zookeeper.ZooKeeper)[2017-05-16 13:44:49,903] INFO Waiting for keeper state SyncConnected (org.I0Itec.zkclient.ZkClient)[2017-05-16 13:44:49,909] INFO Opening socket connection to server 188.226.151.167/188.226.151.167:2181. Will not attempt to authenticate using SASL (unknown error) (org.apache.zookeeper.ClientCnxn)[2017-05-16 13:44:55,904] INFO Terminate ZkClient event thread. (org.I0Itec.zkclient.ZkEventThread)

任何人都可以清楚地解释发生了什么以及如何解决它

Could anyone has clear explanation of what happens and the clear explanation about how to fix it

推荐答案

通过禁用防火墙连接解决了所有kafka与docker连接的问题命令:ufw 禁用

It solved all kafka with docker connection by outside machines by disabling firewall connectionCommand:ufw disable

这篇关于有 Docker 问题的 Kafka的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-12 18:02