Skip to content

Instantly share code, notes, and snippets.

@Lexcenture
Forked from ekampf/setup_kafka.sh
Last active August 29, 2015 14:25
Show Gist options
  • Save Lexcenture/065356350b1dcd01db97 to your computer and use it in GitHub Desktop.
Save Lexcenture/065356350b1dcd01db97 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