Apache Kafka Introductory Tutorial – Set up your first Kafka Producer and Consumer


A basic understanding about Apache Kafka. Please go through the introduction once, should you need it.


Download the Kafka from here.

Untar the tar file that is downloaded.

tar -xzf kafka_2.11-2.1.0.tgz

Run The Server

cd kafka_2.11-2.1.0

Start the zookeeper first

bin/zookeeper-server-start.sh config/zookeeper.properties

Zookeeper would be running at 2181 port. You can check that in the following log:

[2018-12-25 14:32:23,634] INFO binding to port (org.apache.zookeeper.server.NIOServerCnxnFactory)

Start the Kafka Server in another tab.

If you liked this article and would like one such blog to land in your inbox every week, consider subscribing to our newsletter: https://skillcaptain.substack.com

Leave a Reply

Up ↑

%d bloggers like this: