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

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

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