krisjin / daylog

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

kafka command

krisjin opened this issue · comments

  1. 消费

bin/kafka-console-consumer.sh --bootstrap-server 10.21.197.100:9092 --from-beginning --topic user_behavior

  1. 查看topic

bin/kafka-topics.sh --zookeeper node01:2181 --describe --topic t_cdr

  1. 查看指定topic partition offset的信息

./bin/kafka-run-class.sh kafka.tools.GetOffsetShell --broker-list 10.21.197.100:9092 --topic user_behavior --time -1