Upgrade Standalone Kafka
This topic provides steps to start a standalone Kafka cluster in ZooKeeper mode, validate its functionality, and perform a rolling upgrade from Kafka 2.8.2.3.3.6.x-x to Kafka 3.7.2.3.3.6.x-x.
Starting Kafka(2.8.2.3.3.6.x-x) in ZooKeeper Mode
For details about the ODP Standalone Binaries, see Accessing Acceldata Repositories.
- Start the ZooKeeper Service using the following command.
bin/zookeeper-server-start.sh config/zookeeper.properties- Start the Kafka Broker Service. Open another terminal session and run the following command.
bin/kafka-server-start.sh config/server.propertiesOnce all the services are successfully launched, you have a basic Kafka environment ready for use.
Pre-upgrade Validation
Before proceeding with the upgrade, validate the Kafka setup by performing the following steps:
- List Topics
bin/kafka-topics.sh --list --bootstrap-server localhost:9092Example output:
__consumer_offsetsquickstart-events- Create a Same Topic
bin/kafka-topics.sh --create --topic Test1 --bootstrap-server localhost:9092Example output:
Created topic Test1- Write Events into the Topic
bin/kafka-console-producer.sh --topic Test1 --bootstrap-server localhost:9092Input:
>This is my first event>This is my second eventTerminate with CTRL+C.
- Read Events from the Topic
bin/kafka-console-consumer.sh --topic Test1 --from-beginning --bootstrap-server localhost:9092Example output:
This is my first eventThis is my second eventUpgrade Options
For details about upgrading Kafka 2 to Kafka 3, see the following pages.
- Rolling Upgrade from Kafka 2 to Kafka 3
- In-Place Upgrade from Kafka 2 to Kafka 3
- Sidecar (Rolling) Upgrade from Kafka 2 to Kafka 3
Was this page helpful?