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-iconREADME.md
file-type-iconinstall.sh
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-iconinstall-open-jdk
file-type-iconREADME.md
file-type-iconinstall.sh
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 Open JDK

This folder contains a script for installing the OpenJDK. The differences between the Oracle's JDK and OpenJDK have gotten smaller over the last few years.

In the past, the Oracle JDK used to be the best option, as OpenJDK was missing many features, had worse performance, and didn't offer commercial support. However, in recent years, the differences between the JDKs in terms of features and performance have become negligible and Oracle no longer allows you to use their JDK for free . Therefore, most teams are now better off going with OpenJDK, which you can install using this module. Note that if you need commercial support for the JDK, you may wish to use Azul or AdoptOpenJdk instead.

OS Version Compatibility

Not all versions of OpenJDK are available in the respective package repositories for each supported operating system. The following Operating System and JDK versions are known to be available as of September, 2019:

Amazon Linux: 6, 7, 8

CentOS: 6, 7, 8, 11

Ubuntu 16.04: 6, 7, 8

Ubuntu 18.04: 8, 11

There is a good chance this will work with other operating systems (e.g Debian and RHEL) and JDK version combinations, 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-open-jdk" \
  --repo "https://github.com/gruntwork-io/terraform-aws-zookeeper" \
  --tag "[LATEST_AVAILABLE_RELEASE]"

We recommend running this module as part of a Packer template to create an Amazon Machine Image (AMI) (see the zookeeper-ami example for a fully-working sample code).

Command line Arguments

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

  • --version: The version of OpenJDK that you want installed. Currently we support only 6, 7 and 8. The default is 8.

Note that this script will automatically detect whether you are running an apt-based system like Debian/Ubuntu, or a yum-based system like RHEL, CentOS, or Amazon Linux.

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-open-jdk" \
  --repo "https://github.com/gruntwork-io/terraform-aws-zookeeper" \
  --tag "v0.2.0" \
  --module-param "version=7" 

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?