Skip to content

Instantly share code, notes, and snippets.

@pmatseykanets
Forked from sieyip/README.md
Created April 21, 2018 03:30
Show Gist options
  • Save pmatseykanets/f378afdd90a443ea351ea2aa42b055b5 to your computer and use it in GitHub Desktop.
Save pmatseykanets/f378afdd90a443ea351ea2aa42b055b5 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