Skip to content

Instantly share code, notes, and snippets.

@SeptiyanAndika
Last active December 12, 2023 15:14
Show Gist options
  • Save SeptiyanAndika/ae6a91091e87befd2f7fe1596c821982 to your computer and use it in GitHub Desktop.
Save SeptiyanAndika/ae6a91091e87befd2f7fe1596c821982 to your computer and use it in GitHub Desktop.
Homebrew has a services manager and can manage its own Java installation, so an easier way to do this is just
# this will install java 1.8, zookeeper, and kafka
brew install kafka
# this will run ZK and kafka as services
brew services start zookeeper
brew services start kafka
That's it. If you want to stop Kafka, just run the brew services commands in reverse:
brew services stop kafka
brew services stop zookeeper
#alternatve run
zookeeper-server-start /usr/local/etc/kafka/zookeeper.properties
kafka-server-start /usr/local/etc/kafka/server.properties
reference :
https://medium.com/@Ankitthakur/apache-kafka-installation-on-mac-using-homebrew-a367cdefd273
https://medium.com/pharos-production/apache-kafka-macos-installation-guide-a5a3754f09c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment