zkServer.sh start zkServer.sh status
kafka-server-start.sh -daemon /bigdata/kafka_2.12-2.4.1/config/server.properties
kafka-topics.sh --list --zookeeper localhost:2181
kafka-topics.sh --zookeeper localhost:2181 --create --topic wordcount --replication-factor 3 --partitions 3
kafka-console-producer.sh --broker-list linux01:9092,linux02:9092,linux03:9092 --topic wordcount
kafka-console-consumer.sh --bootstrap-server linux01:9092,linux02:9092,linux03:9092 --topic wordcount --from-beginning –from-beginning 消费以前产生的所有数据,如果不加,就是消费消费者启动后产生的数据
kafka-topics.sh --delete --topic wordcount --zookeeperlocalhost:2181
kafka-topics.sh --zookeeper localhost:2181 --describe --topic wordcount