更新 ES-NEW/日志中心集群.md

This commit is contained in:
tu 2024-07-23 17:42:10 +08:00
parent 171fe04542
commit c62dbaa302
1 changed files with 1114 additions and 1112 deletions

View File

@ -578,6 +578,8 @@ nohup bin/kafka-server-start.sh config/server.properties &
创建topic
# bin/kafka-topics.sh --create --zookeeper 172.17.0.4:2181 --replication-factor 1 --partitions 1 --topic testtopic
Created topic "testtopic".
从 Kafka 2.4.0 版本开始Kafka 引入了新的配置方式,--zookeeper 选项被替换成了 --bootstrap-server 选项。
bin/kafka-topics.sh --create --bootstrap-server 192.168.233.177:9092 --replication-factor 1 --partitions 1 --topic tuzuhan
查询topic
# bin/kafka-topics.sh --zookeeper 172.17.0.4:2181 --list
testtopic