Skip to content

Commit 0ed9947

Browse files
committed
Added option "get-topics"
1 parent e0d4929 commit 0ed9947

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

vagrant/templates/controlscript/kafka-control.sh.j2

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,11 @@ case "${1:-''}" in
110110
su -l {{ kafka_username }} -c 'curl -s http://127.0.0.1:8083/connector-plugins | jq '.''
111111
;;
112112

113-
114-
113+
'get-topics')
114+
echo "Get topics..."
115+
echo ""
116+
su -l {{ kafka_username }} -c 'curl -s http://127.0.0.1:8082/topics | jq '.''
117+
;;
115118

116119

117120

@@ -144,6 +147,8 @@ case "${1:-''}" in
144147
echo ""
145148
echo "check-rest-api : Check if the REST API is functioning."
146149
echo "check-connector-plugins : Check which connector plugins are available."
150+
echo ""
151+
echo "get-topics : Get list of topics."
147152
exit 1
148153
;;
149154
esac

0 commit comments

Comments
 (0)