zookeeper-server-start /usr/local/etc/kafka/zookeeper.properties
kafka-server-start /usr/local/etc/kafka/server.properties
kafka-topics --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic test
kafka-console-producer --broker-list localhost:9092 --topic test
initialize the Kafka consumer console, which will listen to bootstrap server localhost at port 9092 at topic test from beginning
kafka-console-consumer --bootstrap-server localhost:9092 --topic test --from-beginning
kafka-topics --list --zookeeper localhost:2181
kafka-topics --delete --zookeeper localhost:2181 --topic test