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

后端 未结 16 2018
一个人的身影
一个人的身影 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:58

    In my case, this doesn't work

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

    and this works

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

    because the topic __consumer_offsets was located on the unaccessible broker. Basically, I'd forgotten to replicate it. Relocating __consumer_offsets solved my issue.

提交回复
热议问题