Go to this url:- https://kafka.apache.org/downloads
Select the latest binary and clone that particular tar file.
wget https://mirrors.estointernet.in/apache/kafka/2.7.0/kafka_2.13-2.7.0.tgz
#####################################################################################
then extract the code
tar -xzvf kafka_2.13-2.7.0.tgz
mv kafka_2.13-2.7.0 kafka
#####################################################################################
After this:-
We have to run these commands to start the service, first we have to start zookeeper and then kafka service.
First go to bin folder and then start service
cd kafka/bin/
./zookeeper-server-start.sh -daemon ../config/zookeeper.properties
./kafka-server-start.sh -daemon ../config/server.properties
Note:- -daemon is used to run service in the background and server.properties and zookeeper.properties file is mandatory to define because all the details related to the service is mentioned in these files.
Bydefault port number of zookeeper is:- 2181
Kafka:- 9092
What is KAFKA and Describe KAFKA Architecture