Skip to content

Instantly share code, notes, and snippets.

@mageddo
Created July 17, 2018 17:38
Show Gist options
  • Select an option

  • Save mageddo/2af979c587bd66617c8156149cbe4fea to your computer and use it in GitHub Desktop.

Select an option

Save mageddo/2af979c587bd66617c8156149cbe4fea to your computer and use it in GitHub Desktop.
TOPICS=$(./bin/kafka-topics.sh --zookeeper zookeeper.intranet:2181 --list)
for i in $TOPICS ;do
echo "move to end $i"
./bin/kafka-consumer-groups.sh --bootstrap-server zookeeper.intranet:9092 --execute --reset-offsets --to-latest --group mg-mining --topic $i
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment