- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Kafka Rolling Upgrade
- Labels:
-
Apache Kafka
Created 01-17-2017 12:22 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
We are planning the rolling upgrade from HDP 2.4.0.0 to 2.5.3.0. No downtime during the upgrade is especially crucial for the Kafka cluster:
- Is the update of the Kafka brokers also rolling?
- Will clients (producer and cusumer) from Kafka 0.9.0.2.4 releases work with brokers from Kafka 0.10.0 releases?
If the answer for 1) and/or 2) is No - what is the best practice to guarantee no downtime?
Thank you in advance, Christian
Created 01-18-2017 05:43 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can do the rolling upgrade without impacting downtime. Before starting the upgrade add these two properties to kafka config. You can add the below configs via ambari -> kafka -> Advanced custom properties.
1. inter.broker.protocol.version = 0.9.0 ( HDP 2.4 kafka version)
2. log.message.format.version = 0.9.0
once these properties are set you can upgrade one broker at a time. Once the broker upgraded and made it into ISR move onto next one to minimize any downtime clients might see.
Once the upgrade finished you can remove inter.broker.protocol.version .
Once you upgrade the clients to kafka_clients 0.10.0.1 version you can remove the log.message.format.version as well.
More details are on this page https://kafka.apache.org/0100/documentation.html#upgrade
Created 01-17-2017 06:03 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@Christian Guegi I believe there are constraints for Kafka based on versions and on whether a cluster has Kerberos enabled or not. I'll try to find someone to respond for 2.4 to 2.5.3.
Created 01-18-2017 04:49 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @lgeorge, fyi: the cluster is not kerberized.
Created 01-17-2017 11:51 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@Christian Guegi You can go with manual upgrade of cluster and can upgrade kafka brokers one by one:
Created 01-18-2017 04:56 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @lraheja, our HDP 2.4 cluster was installed with Ambari. Hence we must use Ambari Upgrade Guide to perform the HDP 2.4 to HDP 2.5.0 upgrade. I don't think a manual upgrade is an option.
Created 01-18-2017 05:43 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can do the rolling upgrade without impacting downtime. Before starting the upgrade add these two properties to kafka config. You can add the below configs via ambari -> kafka -> Advanced custom properties.
1. inter.broker.protocol.version = 0.9.0 ( HDP 2.4 kafka version)
2. log.message.format.version = 0.9.0
once these properties are set you can upgrade one broker at a time. Once the broker upgraded and made it into ISR move onto next one to minimize any downtime clients might see.
Once the upgrade finished you can remove inter.broker.protocol.version .
Once you upgrade the clients to kafka_clients 0.10.0.1 version you can remove the log.message.format.version as well.
More details are on this page https://kafka.apache.org/0100/documentation.html#upgrade
Created 03-08-2017 02:27 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
FYI: With above description we were able to upgrade to version 2.5.3 without any Kafka cluster downtime. We only had some issues with a Kafka client written in Go.
