Kafka installation and starting server – Part 2

Kafka installation and starting server

Here in this blog we will discuss about how to install kafka and will try to show through an example how to start server in up and running mode followed by realtime streaming between producer and consumer accross different kafka-topics(next part) (Kafka installation and starting server – Part 2)

Kafka installation includes two components to be installed and placed to running mode , i.e., Kafka and zookeeper. Zookeeper is also a component in hadoop Ecosystem which acts like a base layer holding the kafka cluster, in other words Kafka cluster is managed by zookeeper.

As hadoop is most compatible with Unix based OS, it would be the best platform for installation, however if you are using a windows machine, you can go for any virtual machine tools like VMware or VirtualBox so as to launch unix in windows directly ( VMs can launch unix directly without any separate OS installation). Use the link below for downloading kafka.

Then run the following commands in the unix

tar -xzf kafka_2.11-1.0.0

cd kafka_2.11-1.0.0

you can also download other versions available, based on the version you download the above command will change accordingly(version name changes)

As we discussed earlier, zookeeper is also required for the running kafka, we need to install zookeeper aswell. Zookeeper needs to be started first before starting kafka server. Follow the link below where you can find the zookeeper installation dump


Select the version 3.3.6 or any other latest stable version and run the below command

tar -xzf zookeeper-3.3.6.tar.gz

cd zookeeper-3.3.6

bin/ start


cd kafka_2.11-1.0.0

bin/ config/

Use the command below for starting the kafka server

bin/ config/



Zookeeper and Kafka servers are now up and running state. Now the next step would be channel establishing and topic creation for realtime streaming.

In the upcoming sessions we will discuss about Realtime Kafka Producer and Consumer Streaming mechanism with an Example.

Keep an eye on this page 🙂

If you like my explanation, please Subscribe for free!!

Please leave a comment as it really matters. Your comments are our energy boosters

This site uses Akismet to reduce spam. Learn how your comment data is processed.