Browse the Repo

file-type-icon.circleci
file-type-iconexamples
file-type-iconmodules
file-type-iconbash-commons
file-type-iconexhibitor-shared-config
file-type-iconinstall-exhibitor
file-type-iconinstall-open-jdk
file-type-iconinstall-oracle-jdk
file-type-iconinstall-supervisord
file-type-iconinstall-zookeeper
file-type-iconsecurity
file-type-iconREADME.md
file-type-iconinstall.sh
file-type-iconrun-exhibitor
file-type-iconrun-health-checker
file-type-iconzookeeper-cluster
file-type-iconzookeeper-iam-permissions
file-type-iconzookeeper-security-group-rules
file-type-icontest
file-type-icon.gitignore
file-type-icon.pre-commit-config.yaml
file-type-iconCODEOWNERS
file-type-iconLICENSE.txt
file-type-iconREADME.md

Browse the Repo

file-type-icon.circleci
file-type-iconexamples
file-type-iconmodules
file-type-iconbash-commons
file-type-iconexhibitor-shared-config
file-type-iconinstall-exhibitor
file-type-iconinstall-open-jdk
file-type-iconinstall-oracle-jdk
file-type-iconinstall-supervisord
file-type-iconinstall-zookeeper
file-type-iconsecurity
file-type-iconREADME.md
file-type-iconinstall.sh
file-type-iconrun-exhibitor
file-type-iconrun-health-checker
file-type-iconzookeeper-cluster
file-type-iconzookeeper-iam-permissions
file-type-iconzookeeper-security-group-rules
file-type-icontest
file-type-icon.gitignore
file-type-icon.pre-commit-config.yaml
file-type-iconCODEOWNERS
file-type-iconLICENSE.txt
file-type-iconREADME.md
Apache ZooKeeper

Apache ZooKeeper

Deploy an Apache ZooKeeper cluster. Supports automatic bootstrap, Exhibitor, zero-downtime rolling deployment, and auto healing.

Code Preview

Preview the Code

mobile file icon

README.md

down

Install ZooKeeper

This folder contains a script for installing Apache ZooKeeper.

This script has been tested on the following operating systems:

  • Amazon Linux
  • Ubuntu

There is a good chance it will work on Debian, CentOS, and RHEL as well, but our automated testing for this module does not cover these other distros at the moment.

Quick start

The easiest way to use this module is with the Gruntwork Installer:

gruntwork-install \
  --module-name "install-zookeeper" \
  --repo "https://github.com/gruntwork-io/package-zookeeper" \
  --tag "v0.0.4"

We recommend running this module, as well as install-exhibitor, as part of a Packer template to create an Amazon Machine Image (AMI) (see the zookeeper-ami example for a fully-working sample code). You can then deploy the AMI using the zookeeper-cluster module (see the zookeeper-cluster example for fully-working sample code).

Command line Arguments

The install-zookeeper module accepts the following arguments, all optional:

  • --version: The version of the ZooKeeper to install.
  • --install-dir: The directory where ZooKeeper should be installed. Default: /opt/zookeeper.
  • --user: The user who will be set as the owner of --install-dir. Default: zookeeper.

If you're using gruntwork-install to run this module, you can pass these arguments using --module-param arguments. Example:

gruntwork-install \
  --module-name "install-zookeeper" \
  --repo "https://github.com/gruntwork-io/package-zookeeper" \
  --tag "v0.0.4" \
  --module-param "version=3.4.11"

Questions? Ask away.

We're here to talk about our services, answer any questions, give advice, or just to chat.

Ready to hand off the Gruntwork?