Skip to main content
View SourceRelease Notes

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/terraform-aws-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/terraform-aws-zookeeper" \
--tag "v0.0.4" \
--module-param "version=3.4.11"