创建topic
find / -name 'kafka-topics.sh'
/opt/kafka_2.13-2.8.1/bin
./kafka-topics.sh --bootstrap-server localhost:9092 --topic hello --create
- 查询某个topic的情况
kafka-topics.sh --bootstrap-server localhost:9092 --describe --topic hello
创建topic
find / -name 'kafka-topics.sh'
/opt/kafka_2.13-2.8.1/bin
./kafka-topics.sh --bootstrap-server localhost:9092 --topic hello --create
kafka-topics.sh --bootstrap-server localhost:9092 --describe --topic hello