go 链接kafka报错解决

报错错误:

producer close, err: kafka: client has run out of available brokers to talk to (Is your cluster reachable?)

原因端口未对外开放;

Centos 开启所有端口对外

systemctl stop firewalld.service

你可能感兴趣的:(Go相关,gopacket,kafka,kafka,分布式)