Skip to content

Instantly share code, notes, and snippets.

@willscripted
Created July 8, 2015 14:20
Show Gist options
  • Save willscripted/bb75b97771d2e9b5590c to your computer and use it in GitHub Desktop.
Save willscripted/bb75b97771d2e9b5590c to your computer and use it in GitHub Desktop.
install kafka
#!/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