Kafka consumer fetching metadata for topics failed

前端 未结 4 1688
情话喂你
情话喂你 2020-12-28 12:20

I am attempting to write a Java client for a third party\'s Kafka and ZooKeeper servers. I am able to list and describe topics, but when I attempt to read any, a Close

4条回答
  •  情书的邮戳
    2020-12-28 12:59

    The broker tells the client which hostname should be used to produce/consume messages. By default Kafka uses the hostname of the system it runs on. If this hostname can not be resolved by the client side you get this exception.

    You can try setting advertised.host.name in the Kafka configuration to an hostname/address which the clients should use.

提交回复
热议问题