How to Configure Kafka on Ubuntu

Posted By : Sonu Kumar | 27-Sep-2017

Kafka is distributed messaging system.

Kafka is very fast. It performs 2 million writes per second.This makes it very easy to transfer data from page cache to network socket.

Kafka is high throughput systems. Kafka does work very well as a replacement for many more traditional message broker like RabbitMQ, ActiveMQ etc..

There are various merits of Kafka:

1.Reliable 

2.Scalable

3.Durable 

4.Performance

Kafka is distributed and fault tolerance.It has high throughput.

Prerequisite:

1.Install Oracle JDK 1.8 by the terminal on Ubuntu write command on Ubuntu like below in image:

image

2.Install Zookeeper  and telnet by writing the command on terminal like below in image:

image

After the installation completes then ZooKeeper will be started as a daemon automatically. By default, this will  be listening on port 2181.

3.Download Kafka binaries and extract that tar file by using the command like that on ubuntu via terminal.See below in image:

image

Now Configure the Kafka Server by using the command on ubuntu via terminal like below in image :

image

Since Kafka does not allow to delete topics by default .for enable the delete topics to add the line in setting like below go to file

:~/kafka/config/server.properties

and write :delete.topic.enable = true and save it that file.

Now Start or Run  the kafka Server by using command via terminal on ubuntu like below in image:

image

 

About Author

Author Image
Sonu Kumar

Sonu Kumar is having sound knowledge in Java, Servlets and Jsp. He loves to spend time with his family and roaming with friends.

Request for Proposal

Name is required

Comment is required

Sending message..