Skip to content

Instantly share code, notes, and snippets.

@Prussia
Forked from sieyip/README.md
Created April 6, 2018 03:25
Show Gist options
  • Select an option

  • Save Prussia/0196ea96a38f8ddf7331e4f82aa6e64a to your computer and use it in GitHub Desktop.

Select an option

Save Prussia/0196ea96a38f8ddf7331e4f82aa6e64a 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

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