# kafka-parallel-consumer-practice **Repository Path**: ourteam/kafka-parallel-consumer-practice ## Basic Information - **Project Name**: kafka-parallel-consumer-practice - **Description**: No description available - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-12-30 - **Last Updated**: 2025-01-01 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # kafka-parallel-consumer-practice 并行消费者实践,使用parallel-consumer库.多个线程同时消费同一个topic的不同分区 ### 安装 - jdk21+kraft ```shell KAFKA_CLUSTER_ID="$(bin/kafka-storage.sh random-uuid)" bin/kafka-storage.sh format --standalone -t $KAFKA_CLUSTER_ID -c config/kraft/reconfig-server.properties bin/kafka-server-start.sh config/kraft/reconfig-server.properties ``` ### 常用命令 ```shell ./kafka-consumer-groups.sh --bootstrap-server localhost:9092 --describe --group CountryCounter ./kafka-topics.sh --bootstrap-server localhost:9092 --topic input-topic --create --partitions 5 --replication-factor 1 ./kafka-topics.sh --bootstrap-server localhost:9092 --topic input-topic --delete ./kafka-topics.sh --bootstrap-server localhost:9092 --describe --topic input-topic ./kafka-consumer-groups.sh --bootstrap-server localhost:9092 --list ```