Skip to content

Instantly share code, notes, and snippets.

@sieyip
Last active July 12, 2019 15:04
Show Gist options
  • Star 17 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save sieyip/3cff306e35fc74a81f886178900dfb1f to your computer and use it in GitHub Desktop.
Save sieyip/3cff306e35fc74a81f886178900dfb1f to your computer and use it in GitHub Desktop.
Installing Kafka on Mac OS X

Installing Kafka on Mac OS X

Install Homebrew

Homebrew is a great little package manager for OS X. If you haven't already, installing it is pretty easy:

ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"

Install Java

Download and install Java: https://java.com/en/download/help/mac_install.xml

Install Kafka

This installs Apache Kafka, and dependency zookeeper if it's not already installed:

brew install kafka

Starting Kafka

Starting zookeeper and default kafka server:

zkserver start
kafka-server-start /usr/local/etc/kafka/server.properties

  • Properties: /usr/local/etc/kafka
  • Logs: /usr/local/var/log/kafka
  • Data: /usr/local/var/lib/kafka-logs

Links

@afroewis
Copy link

Thank you!

@sirvon
Copy link

sirvon commented Feb 15, 2018

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment