Is the upcoming kafka consumer 0.9.x going to be compatible with 0.8 broker?
In other words - it is possible to only switch to new consumer implementation, without touching anything else?
Is the upcoming kafka consumer 0.9.x going to be compatible with 0.8 broker?
In other words - it is possible to only switch to new consumer implementation, without touching anything else?
It looks that in kafka 0.9.0 is back-ward compatibility built-in. Check http://kafka.apache.org/documentation.html#upgrade
Citation from documentation
I recently faced the similar issue where in my application, I had to read from kafka 0.9 and then write back to kafka 0.8. I used kafka client 0.9 in following way.
Consumer Config
Producer Config
Hope this helps.
Based on this Consumer Client Re-design wiki page which quotes,
*Emphasis mine.
I didn't find anywhere specifically stating no compatibility. But using that quote and the fact that the producer in 0.8 was not compatible with the producer in 0.7, I'm assuming that they not compatible.
No. In general it's recommended to upgrade brokers before clients since brokers target backwards compatibility. The 0.9 broker will work with both the 0.8 consumer and 0.9 consumer APIs but not the other way around.
According to the documentation of Kafka 0.9.0, you can not use the new consumer for reading data from 0.8.x brokers. The reason is the following: