黑猴子的家:xkafka-topic-create.sh

#!/bin/bash
kafka_home=/opt/module/kafka-3.2.1
#${kafka_home}/bin/kafka-topics.sh --zookeeper hadoop102:2181,hadoop103:2181,hadoop104:2181 --create --replication-factor 2 --partitions 6 --topic $1
${kafka_home}/bin/kafka-topics.sh --bootstrap-server hadoop102:9092,hadoop103:9092,hadoop104:9092 --create --replication-factor 2 --partitions 6 --topic $1

你可能感兴趣的:(黑猴子的家:xkafka-topic-create.sh)