Skip to content

Instantly share code, notes, and snippets.

@davidoparanti
Forked from SeptiyanAndika/Kafka Homebrew
Created June 20, 2022 15:04
Show Gist options
  • Save davidoparanti/6d13e882796ebc76c33e1feea42afcf9 to your computer and use it in GitHub Desktop.
Save davidoparanti/6d13e882796ebc76c33e1feea42afcf9 to your computer and use it in GitHub Desktop.

Revisions

  1. @SeptiyanAndika SeptiyanAndika revised this gist Nov 20, 2019. 1 changed file with 10 additions and 1 deletion.
    11 changes: 10 additions & 1 deletion Kafka Homebrew
    Original file line number Diff line number Diff line change
    @@ -9,4 +9,13 @@ 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
    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
  2. @SeptiyanAndika SeptiyanAndika created this gist Nov 20, 2019.
    12 changes: 12 additions & 0 deletions Kafka Homebrew
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    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