Before you install and configure a Cassandra host, you must update the Python interpreter to version 2.7, install and configure Java 1.8.x, and configure NTP servers.


  • Verify that you have a CentOS 7 VM to host a Cassandra instance.

  • Verify that routing, NTP, forward, and reverse DNS resolutions are working correctly.

  • Make sure that SELinux and your firewall are not impacting Cassandra functionalities.

  • For best Cassandra performance, it is a best practice to disable Linux swap.


  1. In the CentOS host console, to verify that Python 2.7.5 is installed, run the # python --version command.

    If the system returns an earlier Python version than 2.7.5, or a -bash: python: command not found error, install Python 2.7.5 by running the # yum install -y python2 command.

  2. Disable the Linux firewall by running the following commands:
    # systemctl disable firewalld
    # systemctl stop firewalld
  3. Download Oracle Java Development Kit (JDK) 8u152.

    You can download Oracle JDK 8u152 from the Oracle archive downloads at Log in with a free Oracle account, accept the Oracle License Agreement, and download the jdk-8u152-linux-x64.rpm file locally and copy it to the /tmp directory of your CentOS host.

  4. To install Oracle JDK, in the CentOS host console, navigate to the /tmp directory and run the following command:
    # rpm -ivh jdk-8u152-linux-x64.rpm
  5. Install the Oracle Java Cryptography Extension (JCE) to increase the java encryption level support.
    1. Download the JCE by running the following command:

      # wget -c --header "Cookie: oraclelicense=accept-securebackup-cookie"

    2. Unzip the file by running the following command:

      # unzip

      If the unzip utility is not installed, run the # yum install zip unzip -y command to install it.

    3. Copy the unzipped JCE file to the respective directory by running the following command:

    # cp UnlimitedJCEPolicyJDK8/*.jar /usr/java/jdk1.8.0_152/jre/lib/security/

  6. Verify that the default Java version is correct by running the following command:

    # java -version

    The system returns the following:

    java version "1.8.0_152"
    Java(TM) SE Runtime Environment (build 1.8.0_152-b16)
    Java HotSpot(TM) 64-Bit Server VM (build 25.152-b16, mixed mode)
  7. If you are configuring a Cassandra cluster, after the first Cassandra host is deployed, deploy two additional hosts.

    It is a best practice to configure a DRS anti-affinity rule to prevent the Cassandra systems from residing on the same host. For more information, see Create Intra-VM Anti-Affinity Rules in the vSphere Resource Management documentation.