读取topic
kafka-console-consumer --bootstrap-server localhost:9092 --topic three --from-beginning
查看有哪些topic
kafka-topics --list --zookeeper localhost:2181
删除topic
kafka-topics --delete --zookeeper localhost:2181 --topic test_logs
创建topic
kafka-topics --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic three
生产者
kafka-console-producer --broker-list localhost:9092 --topic test1