Kafka Consumer: How to start consuming from the last message in Python

后端 未结 5 1257
闹比i
闹比i 2020-12-28 22:08

I am using Kafka 0.8.1 and Kafka python-0.9.0. In my setup, I have 2 kafka brokers setup. When I run my kafka consumer, I can see it retrieving messages from the queue and k

5条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2020-12-28 23:14

    kafka-python stores offsets with the kafka server, not on a separate zookeeper connection. Unfortunately, the kafka server apis to support commit/fetching offsets were not fully functional until apache kafka 0.8.1.1. If you upgrade your kafka server, your setup should work. I'd also suggest upgrading kafka-python to 0.9.4.

    [kafka-python maintainer]

提交回复
热议问题