Skip to content

Instantly share code, notes, and snippets.

@estliberitas
Created April 19, 2015 18:02
Show Gist options
  • Save estliberitas/b2c004f7447ed6fa3248 to your computer and use it in GitHub Desktop.
Save estliberitas/b2c004f7447ed6fa3248 to your computer and use it in GitHub Desktop.
Apache ZooKeeper configuration for Travis CI
# Use following configuration to run ZooKeeper while executing tests
before_install:
# Add repository key
- "curl -s http://archive.cloudera.com/cdh4/ubuntu/precise/amd64/cdh/archive.key | sudo apt-key add -"
- "wget http://archive.cloudera.com/cdh4/one-click-install/precise/amd64/cdh4-repository_1.0_all.deb"
# Add Cloudera repository
- "sudo dpkg -i cdh4-repository_1.0_all.deb"
- "sudo apt-get update -qq"
# Install ZooKeeper
- "sudo apt-get install -y zookeeper-server"
before_script:
- "sudo service zookeeper-server init"
- "sudo service zookeeper-server start"
after_script:
- "sudo service zookeeper-server stop"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment