Consumer not receiving messages, kafka console, new consumer api, Kafka 0.9

后端 未结 16 2279
一个人的身影
一个人的身影 2021-02-01 02:41

I am doing the Kafka Quickstart for Kafka 0.9.0.0.

I have zookeeper listening at localhost:2181 because I ran

bin/zookeeper-server-start.sh          


        
16条回答
  •  眼角桃花
    2021-02-01 02:46

    In kafka_2.11-0.11.0.0 the zookeeper server is deprecated and and it is using bootstrap-server, and it will take broker ip address and port. If you give correct broker parameters you will be able to consume messages.

    e.g. $ bin/kafka-console-consumer.sh --bootstrap-server :9093 --topic test --from-beginning

    I'm using port 9093, for you it may vary.

    regards.

提交回复
热议问题