[root@node01 bin]# ./kafka-topics.sh --zookeeper localhost:2181 --create --replication-factor 1 --partitions 1 --topic first_topic
Created topic "first_topic".
[root@node01 bin]#
查看topic
[root@node01 bin]# ./kafka-topics.sh --zookeeper localhost:2181 --list
first_topic
[root@node01 bin]#
查看描述
[root@node01 bin]# ./kafka-topics.sh --describe --topic first_topic --zookeeper localhost:2181
Topic:first_topic PartitionCount:1 ReplicationFactor:1 Configs:
Topic: first_topic Partition: 0 Leader: 0 Replicas: 0 Isr: 0
[root@node01 bin]#