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

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

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