Skip to content

Instantly share code, notes, and snippets.

@notnoopci
Created March 9, 2014 13:45
Show Gist options
  • Save notnoopci/9447961 to your computer and use it in GitHub Desktop.
Save notnoopci/9447961 to your computer and use it in GitHub Desktop.
dependencies:
cache_directories:
- "~/zookeeper-3.4.5"
- "~/kafka_2.8.0-0.8.0"
pre:
- "[[ -d ~/zookeeper-3.4.5 ]] || ( curl -L -o ~/zookeeper.tar.gz 'http://mirror.cogentco.com/pub/apache/zookeeper/current/zookeeper-3.4.5.tar.gz' && tar -xz -C ~ -f ~/zookeeper.tar.gz )"
- "[[ -d ~/kafka_2.8.0-0.8.0 ]] || ( curl -L -o ~/kafka.tar.gz 'http://mirror.metrocast.net/apache/kafka/0.8.0/kafka_2.8.0-0.8.0.tar.gz' && tar -xz -C ~ -f ~/kafka.tar.gz )"
- cp ~/zookeeper-3.4.5/conf/zoo_sample.cfg ~/zookeeper-3.4.5/conf/zoo.cfg
- ~/zookeeper-3.4.5/bin/zkServer.sh start
- ~/kafka_2.8.0-0.8.0/bin/kafka-server-start.sh ~/kafka_2.8.0-0.8.0/config/server.properties: { background: true }
- sleep 5 # wait for Kafka to start fully
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment