#!/bin/bash

# create topic rawbeacons
/opt/kafka/bin/kafka-topics.sh --bootstrap-server kafka:29092 \
--create --if-not-exists --topic rawbeacons \
--partitions 1 --replication-factor 1

# create topic apibeacons
/opt/kafka/bin/kafka-topics.sh --bootstrap-server kafka:29092 \
--create --if-not-exists --topic apibeacons \
--partitions 1 --replication-factor 1

# create topic alertBeacons
/opt/kafka/bin/kafka-topics.sh --bootstrap-server kafka:29092 \
--create --if-not-exists --topic alertbeacons \
--partitions 1 --replication-factor 1

# create topic alertBeacons
/opt/kafka/bin/kafka-topics.sh --bootstrap-server kafka:29092 \
--create --if-not-exists --topic locevents \
--partitions 1 --replication-factor 1