Installing via Binary Download
1.) Go to apache kafka site2.) Under Binary downloads, download
"Scala 2.12 - kafka_2.12-2.0.0.tgz (asc, sha512)"
3.) Open a terminal, move the downloaded file to the root directory then extract
mv Downloads/kafka_2.12-2.0.0.tgz .
tar -xvf kafka_2.12-2.0.0.tgz
4.) Verify if it works
cd kafka_2.12-2.0.0
bin/kafka-topics.sh
4.1) (If it doesn't work)
brew tap caskroom/versions
brew cask install java8
Installing Kafka via Brew
1.) Open a terminal,
brew install kafka
(That's it)
Note: The one notable difference between installing via brew vs binary is that if you install by brew,
there's no need to add the .sh extension to run kafka commands
0 comments:
Post a Comment