已经搭建了kafka本地的环境,并且测试了kafka自带的console-producer 和 consumer,可以实现收发信息。但是在照着教程搭建Go client的时候,总是报错:
producer close, err: kafka: client has run out of available brokers to talk to (Is your cluster reachable?)
请问这是什么原因?我用的kafka和zookeeper端口都是默认的,localhost:9092和localhost:2181
谢谢