Vous ne pouvez pas sélectionner plus de 25 sujets
Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
|
- #!/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
|