Showing posts with label Zookeeper. Show all posts
Showing posts with label Zookeeper. Show all posts

Monday, June 22, 2020

How to Install Apache Kafka on Linux Ubuntu

In order to install Apache Kafka you should have Java installed and JAVA_HOME environment variable set; if not follow the first instructions of this article.
1- Download Zookeeper:

2- Extract the archive content:

3- Create Zookeeper configuration file from the sample provided:

4- Open the startup script file vim ~/.bashrc and add the following content:

5- activate the new path settings:

6- Start zookeeper service:

7- Download Kafka:

8- Create an installation folder for Kafka:

9- Extract the archive content:

10- Open the startup script file vim ~/.bashrc and add the following content:

11- activate the new path settings:

12- Create a shortcut to Kafka configuration file:

13- Edit listners parameter within Kafka configuration file i.e.:
listeners=PLAINTEXT://thedevopsnerdworld.com:9092
14- Start Kafka service: