kafka-python: producer is not able to connect

后端 未结 7 2170
你的背包
你的背包 2020-12-16 00:29

kafka-python (1.0.0) throws error while connecting to the broker. At the same time /usr/bin/kafka-console-producer and /usr/bin/kafka-console-consumer work fine.

Pyt

7条回答
  •  孤街浪徒
    2020-12-16 01:18

    I had a similar problem. In my case, broker hostname was unresolvable on the client side . Try to explicitly set advertised.host.name in the configuration file.

提交回复
热议问题