Skip to content

Instantly share code, notes, and snippets.

@kgorman
Forked from ekampf/setup_kafka.sh
Created October 14, 2015 16:40
Show Gist options
  • Save kgorman/2a98f0c35a83e2608d4b to your computer and use it in GitHub Desktop.
Save kgorman/2a98f0c35a83e2608d4b to your computer and use it in GitHub Desktop.
Setup Kafka (0.8.0) on OSX
brew install sbt
cd /tmp
wget http://apache.spd.co.il/kafka/0.8.0/kafka_2.8.0-0.8.0.tar.gz
tar -zxvf kafka_2.8.0-0.8.0.tar.gz -C /usr/local/
cd /usr/local/kafka_2.8.0-0.8.0
sbt update
sbt package
cd /usr/local
ln -s kafka_2.8.0-0.8.0 kafka
echo "" >> ~/.bash_profile
echo "" >> ~/.bash_profile
echo "# KAFKA" >> ~/.bash_profile
echo "export KAFKA_HOME=/usr/local/kafka" >> ~/.bash_profile
source ~/.bash_profile
echo "export KAFKA=$KAFKA_HOME/bin" >> ~/.bash_profile
echo "export KAFKA_CONFIG=$KAFKA_HOME/config" >> ~/.bash_profile
source ~/.bash_profile
$KAFKA/zookeeper-server-start.sh $KAFKA_CONFIG/zookeeper.properties
$KAFKA/kafka-server-start.sh $KAFKA_CONFIG/server.properties
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment