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-iconREADME.md
file-type-iconinstall.sh
file-type-iconpom.xml
file-type-iconzookeeper-log4j.properties
file-type-iconinstall-open-jdk
file-type-iconinstall-oracle-jdk
file-type-iconinstall-supervisord
file-type-iconinstall-zookeeper
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
file-type-iconterraform-cloud-enterprise-private-module-...

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-iconREADME.md
file-type-iconinstall.sh
file-type-iconpom.xml
file-type-iconzookeeper-log4j.properties
file-type-iconinstall-open-jdk
file-type-iconinstall-oracle-jdk
file-type-iconinstall-supervisord
file-type-iconinstall-zookeeper
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
file-type-iconterraform-cloud-enterprise-private-module-...
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 Exhibitor

This folder contains a script for installing Exhibitor, a supervisor system for ZooKeeper that provides a number of features, including starting the ZooKeeper process, restarting the process if it fails, performing periodic cleanup of ZooKeeper's log directory, and offering a GUI for viewing ZooKeeper nodes

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-exhibitor" \
  --repo "https://github.com/gruntwork-io/terraform-aws-zookeeper" \
  --tag "v0.0.4"

We recommend running this module, along with install-zookeeper, 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-exhibitor module accepts the following arguments, all optional:

  • --version: The version of Exhibitor to install.
  • --install-dir: The directory where to install Exhibitor. Default: /opt/exhibitor.
  • --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-exhibitor" \
  --repo "https://github.com/gruntwork-io/terraform-aws-zookeeper" \
  --tag "v0.0.4" \
  --module-param "version=1.5.6"

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?