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

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

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