Closed ssingudasu closed 8 months ago
topicctl get action currently does not get the Kafka active controller broker id and cluster id
This PR is to implement actions topicctl get controllerid and topicctl get clusterid for the Kafka cluster
topicctl get controllerid
topicctl get clusterid
# cd /path/to/topicctl # go build -o ./build/topicctl -a ./cmd/topicctl
# ./build/topicctl get controllerid --broker-addr {HOST}:{PORT} # ./build/topicctl get controllerid --zk-addr {HOST}:{PORT} # ./build/topicctl get controllerid --zk-addr {HOST}:{PORT} --zk-prefix {ZK_PREFIX}
# ./build/topicctl get clusterid --broker-addr {HOST}:{PORT} # ./build/topicctl get clusterid --zk-addr {HOST}:{PORT} # ./build/topicctl get clusterid --zk-addr {HOST}:{PORT} --zk-prefix {ZK_PREFIX}
# cd /path/to/topicctl # ./scripts/set_up_net_alias.sh # docker-compose up -d # KAFKA_TOPICS_TEST_BROKER_ADMIN=1 go test -count 1 -p 1 ./...
Description
topicctl get action currently does not get the Kafka active controller broker id and cluster id
This PR is to implement actions
topicctl get controllerid
andtopicctl get clusterid
for the Kafka clusterUsage
build topicctl
topicctl get controllerid
topicctl get clusterid
local test
NOTE: