Kafka Consumer: No entry found for connection

后端 未结 6 2404
甜味超标
甜味超标 2021-02-05 12:24

I am trying to check the kafka consumer by consuming the data from a topic on a remote Kafka cluster. I am getting the following error when I use the kafka-console-consume

6条回答
  •  悲&欢浪女
    2021-02-05 13:14

    I had this problem (with consumers and producers) when running Kafka and Zookeeper as Docker containers.

    The solution was to set advertised.listeners in the config/server.properties file of the Kafka brokers, so that it contains the IP address of the container, e.g.

    advertised.listeners=PLAINTEXT://172.15.0.8:9092
    

    See https://github.com/maxant/kafkaplayground/blob/master/start-kafka.sh for an example of a script used to start Kafka inside the container after setting up the properties file correctly.

提交回复
热议问题