问题列表与解决方案
-
Connection to node -1 could not be established. Broker may not be available.
在kafka/conf/server.properties中,
将listeners = PLAINTEXT://your.host.name:9092 advertised.listeners=PLAINTEXT://your.host.name:9092
其中的your.host.name换成本机ip即可
- 虚拟机可以发送和接收消息,但主机却不可以,修改
listeners = PLAINTEXT://0.0.0.0:9092 advertised.listeners=PLAINTEXT://192.168.169.1:9092 host为主机ip