更新 ES-NEW/日志中心集群.md
This commit is contained in:
parent
171fe04542
commit
c62dbaa302
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue