Run Zookeeper
cd kafka_2.12-2.0.0
zookeeper-server-start.sh config/zookeeper.properties
Run Kafka
cd kafka_2.12-2.0.0
kafka-server-start.sh config/server.properties
Consumer
kafka-console-consumer.sh --bootstrap-server 127.0.0.1:9092 --topic first-topic
Consumer Group
kafka-console-consumer.sh --bootstrap-server 127.0.0.1:9092 --topic first-topic --group my-first-application
Producer
kafka-console-producer.sh --broker-list 127.0.0.1:9092 --topic first-topic