Upgrading Kafka

Last Updated : Dec 01, 2020 |

Before you begin

  • Refer to the Zookeeper/Kafka upgrade documentation for detailed steps on backup and restore the kafka config and event data.

  • Refer Kafka documentation on how to backup and restore of event data.

  • Confirm that the Kafka and Zookeeper version are in sync with the Kafka and Zookeeper installed with POM server.

Procedure

  1. Back up all configuration files before upgrading. This includes, for example, /kafka, /kafka-rest, and /etc/schema-registry.
  2. Event Data Backup: In the case of POM server, the event data is stored at $KAFKA_HOME/kafka-store/kafka location. Take a backup of the kafka-store directory.
    Note:

    The location may vary.

  3. Upgrade the software by following instructions available at https://kafka.apache.org/10/documentation/streams/upgrade-guide.
  4. Update the server config to match with the older one.
  5. Restore the event data.
  6. Start the zookeeper and kafka server.