Leader Not Available Kafka in Console Producer

前端 未结 24 2558
野趣味
野趣味 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:10

    For me, I didn't specify broker id for Kafka instance. It will get a new id from zookeeper sometimes when it restarts in Docker environment. If your broker id is greater than 1000, just specify the environment variable KAFKA_BROKER_ID.

    Use this to see brokers, topics and partitions.

    brew install kafkacat
    kafkacat -b [kafka_ip]:[kafka_poot] -L
    

提交回复
热议问题