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

后端 未结 16 1992
一个人的身影
一个人的身影 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条回答
  •  -上瘾入骨i
    2021-02-01 02:52

    I my MAC box I was facing the same issue of console-consumer not consuming any messages when used the command

    kafka-console-consumer --bootstrap-server localhost:9095 --from-beginning --topic my-replicated-topic
    

    But when I tried with

    kafka-console-consumer --bootstrap-server localhost:9095 --from-beginning --topic my-replicated-topic --partition 0
    

    It happily lists the messages sent. Is this a bug in Kafka 1.10.11?

提交回复
热议问题