L.Leanne
L.Leanne

Reputation: 29

Can Kafka consumer on newer version consume message from Kafka producer on older version?

I have a kafka producer that is using 0.80 Kafka version on one machine (eg. ip is 1.2.3.4), can I use kafka consumer that is using 0.10 Kafka version on another machine to consume the message?

I tried to write a consumer on the newer version which listen to 1.2.3.4:9092. But it says kafka.errors.NoBrokersAvailable: NoBrokersAvailable. Is that not allowed? Or did I set something wrong?

Thanks.

Upvotes: 0

Views: 1382

Answers (1)

Robin Moffatt
Robin Moffatt

Reputation: 32110

Version 0.10.2 clients can talk to version 0.10.0 or newer brokers. However, if your brokers are older than 0.10.0, you must upgrade all the brokers in the Kafka cluster before upgrading your clients. Version 0.10.2 brokers support 0.8.x and newer clients.

https://kafka.apache.org/documentation/#upgrade_10_2_0

Upvotes: 1

Related Questions