Getting Started With Kafka Concepts Simple Demo

Overview and Getting Started with Kafka highlighting the key concepts & simple demo to get started

GETTING STARTED WITH KAFKA

Setting up Kafka
----------------

Start the server
----------------
bin/zookeeper-server-start.sh config/zookeeper.properties
bin/kafka-server-start.sh config/server.properties

Create a topic
--------------
bin/kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic test

See the topics
--------------
bin/kafka-topics.sh --list --zookeeper localhost:2181
bin/kafka-topics.sh --zookeeper localhost:2181 --describe --topic test

Create messages
---------------
bin/kafka-console-producer.sh --broker-list localhost:9092 --topic test

Start a consumer
----------------
bin/kafka-console-consumer.sh --zookeeper localhost:2181 --topic test --from-beginning