-
-
Save toddlers/a8c7d5f94241f5149f8a to your computer and use it in GitHub Desktop.
Setup Kafka (0.8.0) on OSX
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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