Skip to main content

CCM extension that starts nodes under Java 1.8

Project description

ccm-java8

ccm-java8 is a simple CCM extension that explicitly sets the JAVA_HOME environment variable for all CCM-managed Cassandra nodes to an available Java 1.8 installation, which is required to run Cassandra 3.11 and lower.

While operating systems support the side-by-side installation of multiple Java versions, only one version can be selected as the default (i.e., what version java on $PATH points to). Cassandra's bin/cassandra launch script prefers the java binary under $JAVA_HOME, and will fallback to using the java binary on $PATH if $JAVA_HOME isn't set. Hence, unless $JAVA_HOME or the default is explicitly set to a Java 1.8 installation, Cassandra will try, and fail, to start under an incompatible Java version.

ccm-java8 works by registering a CCM extension, and hooks into the append_to_server_env method that allows extensions to provide additional environment variables for each Cassandra process started by CCM. On node start, ccm-java8 explicitly sets the JAVA_HOME environment variable to a directory containing a Java 1.8 installation, or throws an exception otherwise.

Platforms Currently Supported: macOS

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ccm_java8-0.1.tar.gz (2.1 kB view hashes)

Uploaded Source

Built Distribution

ccm_java8-0.1-py3-none-any.whl (6.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page