diff --git a/tools/init-topic.sh b/tools/init-topic.sh index 6f64b2d..0403b4b 100755 --- a/tools/init-topic.sh +++ b/tools/init-topic.sh @@ -1,3 +1,5 @@ +#!/usr/bin/env bash + topic="megaphone-control" $KAFKA/bin/kafka-configs.sh --zookeeper localhost --alter --entity-type topics --entity-name $topic --add-config retention.ms=1000 $KAFKA/bin/kafka-topics.sh --delete --zookeeper localhost:2181 --topic $topic