您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 

21 行
716 B

  1. #!/bin/bash
  2. # create topic rawbeacons
  3. /opt/kafka/bin/kafka-topics.sh --bootstrap-server kafka:29092 \
  4. --create --if-not-exists --topic rawbeacons \
  5. --partitions 1 --replication-factor 1
  6. # create topic apibeacons
  7. /opt/kafka/bin/kafka-topics.sh --bootstrap-server kafka:29092 \
  8. --create --if-not-exists --topic apibeacons \
  9. --partitions 1 --replication-factor 1
  10. # create topic alertBeacons
  11. /opt/kafka/bin/kafka-topics.sh --bootstrap-server kafka:29092 \
  12. --create --if-not-exists --topic alertbeacons \
  13. --partitions 1 --replication-factor 1
  14. # create topic alertBeacons
  15. /opt/kafka/bin/kafka-topics.sh --bootstrap-server kafka:29092 \
  16. --create --if-not-exists --topic locevents \
  17. --partitions 1 --replication-factor 1