Page History
...
Install Apache Cassandra by executing the install_cassandra<version_number>_<os_version>.sh installation script.
Code Block title Example sudo ./install_cassandra4x_centos_rhel_7.sh
Info The script downloads and installs the necessary packages, Cassandra, and the Cassandra tools from the Apache Software Foundation repository, and creates the necessary firewall rules to allow proper operation both for a single node or a cluster installation. OpenJDK 8 will be installed with Cassandra. Additionally, the installation script will install OpenJDK 11 and set the system environment to use the newer Java 11.
Start Apache Cassandra by executing the following command:
Code Block language bash theme DJango linenumbers true sudo systemctl start cassandra
Check if Apache Cassandra is running by executing the following command:
Code Block language bash theme DJango linenumbers true nodetool -h ::FFFF:127.0.0.1 status
Note You can also use the following command:
Code Block language bash theme DJango linenumbers true nodetool -Dcom.sun.jndi.rmiURLParsing=legacy status
If Apache Cassandra is running, you should receive the output displayed below. If the service is fully operational, the first 2 characters of the last line are "UN", indicating that the node status is Up, and its state is Normal.
Code Block language bash Datacenter: datacenter1 ======================= Status=Up/Down |/ State=Normal/Leaving/Joining/Moving -- Address Load Tokens Owns (effective) Host ID Rack UN 127.0.0.1 128.4 KB 256 100.0% ea3f99eb-c4ad-4d13-95a1-80aec71b750f rack1
Note Wait for a few minutes until Cassandra starts for the first time before checking if it is running. If Cassandra has not started yet, you will get the error: "No nodes present in the cluster. Has this node finished starting up?" This means that you need to give Cassandra more time to start.
- If Apache Cassandra is not running or if you used installation options other than the one described in this chapter, optionally configure Apache Cassandra.
...