Skip to content

Instantly share code, notes, and snippets.

@bmagistro
bmagistro / kafka-config.sh
Created March 1, 2021 14:22
Kafka Manager Auto Cluster Creation
#!/bin/bash
# based on https://gist.github.com/CROSP/0d98ec1d5da389c679025a75260c7599#file-kafka-config-sh
# since our environment is not as dynamic define variables here
KAFKA_MANAGER_HOST="127.0.0.1:8080"
# KAFKA_CLUSTERS is a "double" separated list
# first comma separated for entries
# second pound sign separated for associated zookeeper and cluser name
KAFKA_CLUSTERS="127.3.0.1:2181#prod5"