kafka-scripts/list-groups.sh

11 lines
219 B
Bash

#!/bin/bash
KAFKA_IP=`. get-kafka-ip.sh`
if [[ -z "$KAFKA_IP" ]]; then
echo "Could not detect Kafka IP from config/properties"
exit
fi
bin/kafka-consumer-groups.sh --bootstrap-server $KAFKA_IP --list