kafka启动命令
kafka-server-start.sh -daemon config/server.properties
kafka生产者端启动命令
kafka-console-producer.sh --broker-list localhost:9092 --topic kafka_streaming_topic
kafka消费者端启动命令
kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic kafka_streaming_topic --from-beginning
kafka查看topic命令
kafka-topics.sh -zookeeper localhost:2181 -list
kafka创建topic命令
kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic Newtopic