From 54e9d75a3fca519ba306a04a6b47cd561c6fb3c6 Mon Sep 17 00:00:00 2001 From: "Chung, Ming-Yen" Date: Thu, 17 Oct 2024 11:48:04 +0800 Subject: [PATCH] KAFKA-17683 Remove Zookeeper from READMEs in 4.0 (#17354) Reviewers: Chia-Ping Tsai --- README.md | 9 --------- trogdor/README.md | 15 ++++++--------- 2 files changed, 6 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index 0be7bff7afa..bc3a998b6e4 100644 --- a/README.md +++ b/README.md @@ -108,15 +108,6 @@ Using docker image: docker run -p 9092:9092 apache/kafka:3.7.0 -### Running a Kafka broker in ZooKeeper mode - -Using compiled files: - - ./bin/zookeeper-server-start.sh config/zookeeper.properties - ./bin/kafka-server-start.sh config/server.properties - ->Since ZooKeeper mode is already deprecated and planned to be removed in Apache Kafka 4.0, the docker image only supports running in KRaft mode - ### Cleaning the build ### ./gradlew clean diff --git a/trogdor/README.md b/trogdor/README.md index ec97e2ee95d..79ff663887c 100644 --- a/trogdor/README.md +++ b/trogdor/README.md @@ -2,21 +2,18 @@ Trogdor ======================================== Trogdor is a test framework for Apache Kafka. -Trogdor can run benchmarks and other workloads. Trogdor can also inject faults in order to stress test the system. +Trogdor can run benchmarks and other workloads. Trogdor can also inject faults in order to stress test the system. Quickstart ========================================================= -First, we want to start a single-node Kafka cluster with a ZooKeeper and a broker. +First, we want to [start a single-node Kafka cluster in KRaft mode](https://github.com/apache/kafka/blob/trunk/README.md#running-a-kafka-broker-in-kraft-mode) -Running ZooKeeper: +Running Kafka in Kraft mode: ``` - ./bin/zookeeper-server-start.sh ./config/zookeeper.properties &> /tmp/zookeeper.log & -``` -Running Kafka: - -``` -./bin/kafka-server-start.sh ./config/server.properties &> /tmp/kafka.log & +KAFKA_CLUSTER_ID="$(./bin/kafka-storage.sh random-uuid)" +./bin/kafka-storage.sh format -t $KAFKA_CLUSTER_ID -c config/kraft/server.properties +./bin/kafka-server-start.sh config/kraft/server.properties &> /tmp/kafka.log & ``` Then, we want to run a Trogdor Agent, plus a Trogdor Coordinator.