kafka-scripts/describe-group.sh

15 lines
293 B
Bash
Raw Permalink Normal View History

2019-07-05 12:02:20 +03:00
#!/bin/bash
KAFKA_IP=`. get-kafka-ip.sh`
if [[ -z "$KAFKA_IP" ]]; then
echo "Could not detect Kafka IP from config/properties"
exit
fi
if [[ -z "$1" ]]; then
echo "No group is provided"
exit
fi
bin/kafka-consumer-groups.sh --bootstrap-server $KAFKA_IP --group $1 --describe