Non puoi selezionare più di 25 argomenti
Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
|
- #!/bin/bash
- # Retention: messages older than 2 days are deleted (172800000 ms = 2 days)
- RETENTION_MS=172800000
-
- # create topic rawbeacons
- /opt/kafka/bin/kafka-topics.sh --bootstrap-server kafka:29092 \
- --create --if-not-exists --topic rawbeacons \
- --partitions 1 --replication-factor 1 --config retention.ms=$RETENTION_MS
-
- # create topic apibeacons
- /opt/kafka/bin/kafka-topics.sh --bootstrap-server kafka:29092 \
- --create --if-not-exists --topic apibeacons \
- --partitions 1 --replication-factor 1 --config retention.ms=$RETENTION_MS
-
- # create topic alertBeacons
- /opt/kafka/bin/kafka-topics.sh --bootstrap-server kafka:29092 \
- --create --if-not-exists --topic alertbeacons \
- --partitions 1 --replication-factor 1 --config retention.ms=$RETENTION_MS
-
- # create topic locevents
- /opt/kafka/bin/kafka-topics.sh --bootstrap-server kafka:29092 \
- --create --if-not-exists --topic locevents \
- --partitions 1 --replication-factor 1 --config retention.ms=$RETENTION_MS
-
- # create topic settings
- /opt/kafka/bin/kafka-topics.sh --bootstrap-server kafka:29092 \
- --create --if-not-exists --topic settings \
- --partitions 1 --replication-factor 1 --config retention.ms=$RETENTION_MS
-
- # create topic alert
- /opt/kafka/bin/kafka-topics.sh --bootstrap-server kafka:29092 \
- --create --if-not-exists --topic alert \
- --partitions 1 --replication-factor 1 --config retention.ms=$RETENTION_MS
-
- # create topic healthlocation
- /opt/kafka/bin/kafka-topics.sh --bootstrap-server kafka:29092 \
- --create --if-not-exists --topic healthlocation \
- --partitions 1 --replication-factor 1 --config retention.ms=$RETENTION_MS
-
- # create topic healthdecoder
- /opt/kafka/bin/kafka-topics.sh --bootstrap-server kafka:29092 \
- --create --if-not-exists --topic healthdecoder \
- --partitions 1 --replication-factor 1 --config retention.ms=$RETENTION_MS
-
- # create topic healthbridge
- /opt/kafka/bin/kafka-topics.sh --bootstrap-server kafka:29092 \
- --create --if-not-exists --topic healthbridge \
- --partitions 1 --replication-factor 1 --config retention.ms=$RETENTION_MS
|