Created
July 8, 2015 14:20
-
-
Save willscripted/bb75b97771d2e9b5590c to your computer and use it in GitHub Desktop.
install kafka
This file contains 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
#!/usr/bin/env bash | |
# Just for editor highlighting | |
### Kafka configuration | |
version=0.8.2.1 | |
scala_version=2.11 | |
install_dir=/usr/local/share | |
sudo -E su - --command "cd /tmp && wget http://archive.apache.org/dist/kafka/$version/kafka_$scala_version-$version.tgz" | |
sudo -E su - --command "cd $install_dir && tar zxf /tmp/kafka_*.tgz && mv $install_dir/kafka_* $install_dir/kafka" | |
sudo -E su - --command "rm -rf /tmp/kafka_*.tgz" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment