topic操作命令
获取topic列表
bin/kafka-topics.sh -zookeeper 192.168.0.1:2181 --list
topic创建
bin/kafka-topics.sh -zookeeper 192.168.0.1:2181 --create --topic topicname --partitions 2 --replication-factor 2
topic删除
bin/kafka-topics.sh -zookeeper 192.168.0.1:2181 --delete --topic topicname
topic详情
bin/kafka-topics.sh -zookeeper 192.168.0.1:2181 --describe --topic topicname
topic 创建位置 kafka/log
topicname-0(topic创建以topic名称+分区命令)
server.log(kafka启动日志记录,问题排查)
网友评论