kafka启动后报错
来源:8-4 SpringCloud Sleuth 整合 Zipkin 实现分布式链路跟踪、收集

qq_沈姓男子_0
2022-09-25
2022-09-25 00:06:23.928 WARN [e-commerce-gateway,] 22904 — [ad | producer-1] org.apache.kafka.clients.NetworkClient : [Producer clientId=producer-1] Connection to node 0 (localhost/127.0.0.1:9092) could not be established. Broker may not be available.
2022-09-25 00:06:25.360 WARN [e-commerce-gateway,] 22904 — [| adminclient-1] org.apache.kafka.clients.NetworkClient : [AdminClient clientId=adminclient-1] Connection to node 0 (localhost/127.0.0.1:9092) could not be established. Broker may not be available.
2022-09-25 00:06:27.041 WARN [e-commerce-gateway,] 22904 — [ad | producer-1] org.apache.kafka.clients.NetworkClient : [Producer clientId=producer-1] Connection to node 0 (localhost/127.0.0.1:9092) could not be established. Broker may not be available.
2022-09-25 00:06:28.459 WARN [e-commerce-gateway,] 22904 — [| adminclient-1] org.apache.kafka.clients.NetworkClient : [AdminClient clientId=adminclient-1] Connection to node 0 (localhost/127.0.0.1:9092) could not be established. Broker may not be available.
2022-09-25 00:06:29.920 WARN [e-commerce-gateway,] 22904 — [ad | producer-1] org.apache.kafka.clients.NetworkClient : [Producer clientId=producer-1] Connection to node 0 (localhost/127.0.0.1:9092) could not be established. Broker may not be available.
2022-09-25 00:06:31.449 WARN [e-commerce-gateway,] 22904 — [| adminclient-1] org.apache.kafka.clients.NetworkClient : [AdminClient clientId=adminclient-1] Connection to node 0 (localhost/127.0.0.1:9092) could not be established. Broker may not be available.
老师 kafka对接后,我的nacosclient和gateway启动后一直报再报这个错
1回答
-
qq_沈姓男子_0
提问者
2022-09-27
已解决,保证kafka和程序在同一网段。跨网kadka需另外配置。
00
相似问题