Leader Not Available Kafka in Console Producer

前端 未结 24 2535
野趣味
野趣味 2020-12-07 07:47

I am trying to use Kafka.
All configurations are done properly but when I try to produce message from console I keep getting the following error

WARN Err         


        
24条回答
  •  一整个雨季
    2020-12-07 08:13

    It could be related to advertised.host.name setting in your server.properties.

    What could happen is that your producer is trying to find out who is the leader for a given partition, figures out its advertised.host.name and advertised.port and tries to connect. If these settings are not configured correctly it then may think that the leader is unavailable.

提交回复
热议问题