-
Notifications
You must be signed in to change notification settings - Fork 0
/
kafka-start.sh
7 lines (7 loc) · 869 Bytes
/
kafka-start.sh
1
2
3
4
5
6
7
docker-compose -f kafka/docker-compose.kafka.yaml up -d --remove-orphans
sleep 10
docker exec -i kafka ./usr/bin/kafka-topics --zookeeper zookeeper:2181 --create --topic result-value-store --partitions 3 --replication-factor 1 --if-not-exists
docker exec -i kafka ./usr/bin/kafka-topics --zookeeper zookeeper:2181 --create --topic result-body-store --partitions 3 --replication-factor 1 --if-not-exists
docker exec -i kafka ./usr/bin/kafka-topics --zookeeper zookeeper:2181 --create --topic result-request --partitions 3 --replication-factor 1 --if-not-exists
docker exec -i kafka ./usr/bin/kafka-topics --zookeeper zookeeper:2181 --create --topic result-return --partitions 3 --replication-factor 1 --if-not-exists
docker exec -i kafka ./usr/bin/kafka-topics --zookeeper zookeeper:2181 --create --topic result-done --partitions 3 --replication-factor 1 --if-not-exists