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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.