Sha256: 6eb6246069523a4df8f12e5331f661f0b03ba94811c888fc7876c464692bbc4a

Contents?: true

Size: 349 Bytes

Versions: 31

Compression:

Stored size: 349 Bytes

Contents

#!/bin/bash
set -eu

TOPIC=${TOPIC:='test'}
PARTITIONS=${PARTITIONS:=2}

echo "creating topic ${TOPIC}, partitions ${PARTITIONS}"
docker-compose run --rm -e PARTITIONS=$PARTITIONS -e TOPIC=$TOPIC kafka kafka-topics.sh --create \
  --topic $TOPIC \
  --replication-factor 1 \
  --partitions $PARTITIONS \
  --zookeeper zookeeper:2181 \
  2>/dev/null

Version data entries

31 entries across 31 versions & 2 rubygems

Version Path
phobos-2.1.6 utils/create-topic.sh
phobos-2.1.5 utils/create-topic.sh
phobos-2.1.4 utils/create-topic.sh
phobos-2.1.3 utils/create-topic.sh
phobos-2.1.2 utils/create-topic.sh
phobos-2.1.1 utils/create-topic.sh
phobos_temp_fork-0.0.4 utils/create-topic.sh
phobos_temp_fork-0.0.3 utils/create-topic.sh
phobos_temp_fork-0.0.2 utils/create-topic.sh
phobos_temp_fork-0.0.1 utils/create-topic.sh
phobos-2.1.0 utils/create-topic.sh
phobos-2.0.2 utils/create-topic.sh
phobos-2.0.1 utils/create-topic.sh
phobos-2.0.0.pre.beta1 utils/create-topic.sh
phobos-1.9.0 utils/create-topic.sh
phobos-1.9.0.pre.beta3 utils/create-topic.sh
phobos-1.9.0.pre.beta2 utils/create-topic.sh
phobos-1.9.0.pre.beta1 utils/create-topic.sh
phobos-1.8.3.pre.beta2 utils/create-topic.sh
phobos-1.8.3.pre.beta1 utils/create-topic.sh