Answers for "how to install kafka"

1

how to install kafka

#I am assuming your have java install
#go to https://kafka.apache.org/downloads to
#download your specific kafka version you want
wget https://dlcdn.apache.org/kafka/3.0.0/kafka-3.0.0-src.tgz
#expload the downloaded file into a dir
tar xzf kafka-3.0.0-src.tgz

#rename the dir to kafka
mv kafka_2.12-2.2.1 kafka

#you can move the kafka dir into any other dir of your choice
sudo mv kafka /dir/of/your/choice

#to run kafka you'll need to have started zookeeper
#cd into your kafka dir and run the code below to start zookeeper
sudo bin/zookeeper-server-start.sh config/zookeeper.properties

#then start kafka
sudo bin/kafka-server-start.sh config/server.properties


#don't forgive to give a thumbs up
Posted by: Guest on September-28-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language