Skip to content
Sandeep Valapi edited this page Oct 17, 2018 · 1 revision

Apache Kafka is distributed streaming platform

kafka

Steps for usage:


Download Apache Kafka from below link
https://kafka.apache.org/quickstart

Unzip in your terminal:
	1. Use below steps to start zookeeper
	    bin/zookeeper-server-start.sh config/zookeeper.properties
	2. Start kafka broker
	    bin/kafka-server-start.sh config/server.properties
	3. Create a Topic
	    bin/kafka-topics.sh --zookeeper localhost:2181 --create --topic MyFirstTopic1 --partitions 2 --replication-factor 1
	4. To list created Topic
	    bin/kafka-topics.sh --zookeeper localhost:2181 --list
	5. Start producer
	    bin/kafka-console-producer.sh --broker-list localhost:9092 --topic MyFirstTopic1
	6. Start consumer
        bin/kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic MyFirstTopic1

Reference : https://www.youtube.com/watch?v=6AYNxdKQ_0o

Link to my GitHub Repo : https://github.com/sandeepvalapi/Spring-Kafka

Clone this wiki locally