windows中启动
.\kafka-server-start G:\kafka_2.13-2.4.1\config\server.properties

Topic

查询主题
.\kafka-topics.bat --zookeeper 127.0.0.1:2181 --list
创建主题(到logs目录)(副本数小于broker)
.\kafka-topics.bat --zookeeper 127.0.0.1:2181 --create --topic first --partitions 2 --replication-factor 1

删除 (需要在配置文件中配置, 否则为标记删除)
.\kafka-topics.bat --zookeeper 127.0.0.1:2181 --delete --topic first

查看详情
.\kafka-topics.bat --zookeeper 127.0.0.1:2181 --describe --topic first