Answer the question
In order to leave comments, you need to log in
How to update Kafka?
At the moment I have a kafka cluster of 4 servers with version 2.4
I would like to clarify the correct sequence of actions when upgrading.
1. I downloaded the kafka_2.12-2.5.0.tgz archive, unzipped it, copied the Kafka 2.4 configs to the kafka_2.12-2.5.0/configs folder. server.properties, zookeeper.properties, producer.properties.
2. Stopped the broker on the first node, that is, stopped kafka.service and zookeeper.service
3. Updated server.properties in the config in the kafka_2.12-2.5.0/configs/ folders and added the following properties.
inter.broker.protocol.version = 2.4
log.message.format.version = 2.4 i.e. I
will indicate the old version
4. I will update the brokers one by one on 4 nodes
5. After checking the behavior and performance of the cluster, I will change the protocol version
inter.broker.protocol.version = 2.5
6. I will restart the brokers one by one so that the new protocol version takes effect
Is everything correct? What will happen to topics and offsets when kafka is updated. Will it work in the cluster when the broker is disabled and enabled in the folder with the new version?
Thanks for the help!
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question