Spring Cloud连接Kafka启动报Connection to node 0 could not be established. Broker may not be available.
在使用Spring Cloud Bus(bus-kafka)做动态配置更新时,需要用到Kafka,启动报如下错误:Connection to node 0 could not be established. Broker may not be available.Kafka在Linux本机是连接正常的,后面排查得知,Kafka默认只能支持本机访问,要远程访问需修改配置config/server.p
·
在使用Spring Cloud Bus(bus-kafka)做动态配置更新时,需要用到Kafka,启动报如下错误:
Connection to node 0 could not be established. Broker may not be available.
Kafka在Linux本机是连接正常的,后面排查得知,Kafka默认只能支持本机访问,要远程访问需修改配置
config/server.properties,取消如下两行注释,并把localhost改成访问本机的IP地址。
更多推荐
所有评论(0)