Installation of JVM

Installation of the JVM is quite simple. Download the most recent patch version of the JDK, and distribute it to the node(s) you are building via scp, wget, curl, or another method of orchestration.

Remember, Cassandra 3.x should use Java 8.

With the JDK downloaded, untar it, and move it to a location other than your home directory. For the purposes of this example, we'll put it in /usr/local/:

sudo tar -zxvf jdk-8u171-linux-x64.tar.gzsudo mv jdk1.8.0_171 /usr/localsudo alternatives --install /usr/bin/java java /usr/local/jdk1.8.0_171/bin/java 1sudo alternatives --set java /usr/local/jdk1.8.0_171/bin/java

Alternatively, you can install the JDK via your Linux package management system. For Debian Linux, try:

sudo apt-get ...

Get Mastering Apache Cassandra 3.x - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.