ccm-java8
ccm-java8 is a CCM extension that explicitly sets the JAVA_HOME environment variable for all CCM-managed
Cassandra nodes (and related tools) to an available Java 8 installation, which is required to run Cassandra 3.11 and lower.
Platforms Currently Supported:
- macOS
- Linux
- Arch
- Debian-based
- RHEL-based
Usage
ccm-java8 is available on PyPI.
-
Install it alongside CCM:
pip install ccm ccm-java8 -
Run CCM commands as normal.
Cassandra and various tools will launch using the Java 8 VM.
If no Java 8 VM can be found, CCM will refuse to start. Install Java 8 if this occurs.
Motivation
Many operating systems support the side-by-side installation of multiple Java versions, yet only one version can be selected as the default
(i.e., what version of java is on $PATH).
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 platform default is explicitly set to a Java 8 installation, Cassandra will try, and fail, to start under an incompatible Java version.
ccm-java8 works by registering a CCM extension that when loaded by CCM explicitly sets the JAVA_HOME environment variable to a directory containing a Java 8 installation, or throws an exception otherwise.
Older versions used to register a hook into the append_to_server_env function, but this function doesn't get called for tools (nodetool, sstabledump, etc.).
The current version sets the JAVA_HOME environment variable globally in the CCM Python process, which gets inherited by all sub-processes launched by CCM.
Metadata
Release files for ccm-java8 1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ccm_java8-1.0.tar.gz | 3.5 kB | Without provenance | Details for ccm_java8-1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ccm_java8-1.0-py3-none-any.whl | Python 3 | none | any | Details for ccm_java8-1.0-py3-none-any.whl |
Total release size: 11.3 kB
Release files / ccm_java8-1.0.tar.gz
| Download URL | ccm_java8-1.0.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0f7b149781412577b47b1ff9b7de07182a17b33d4cea60aeacb660dbca1a754b
|
|
BLAKE2b-256 checksum How to use checksums |
af06689b5a1df4b8f2fa009d07aca9429e11660c801981c4d6650380ae43cef0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3
|
Release files / ccm_java8-1.0-py3-none-any.whl
| Download URL | ccm_java8-1.0-py3-none-any.whl |
|---|---|
| Size | 7.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8bd622fcaa9ab66bc603201cbf4558063b20c1a12d0be50ea9d87c0aa3effb65
|
|
BLAKE2b-256 checksum How to use checksums |
620fe85dfc85f0914ea283b70524f9b0112e1f34cd43b21acf417d74ea249ebb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3
|
Security for ccm-java8 1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.