Apache Cassandra database is the right choice when you need scalability and high availability without compromising performance. Cassandra consistently outperforms popular NoSQL alternatives in benchmarks and real applications, primarily because of fundamental architectural choices. Linear scalability and proven fault-tolerance on commodity hardware or cloud infrastructure make it the perfect platform for mission-critical data.
Cassandra requires that the latest version of Java 8, either the Oracle Java Standard Edition 8 or OpenJDK 8 be installed. To verify that you have the correct version of java installed, type
java -version. If you don't have Java installed, you can check out our guide on installing Java on Debian
You can also read our guide on installing Apache Cassandra on Ubuntu
Deploying your cloud server
If you have not already registered with Cloudwafer, you should begin by getting signed up. Take a moment to create an account after which you can quickly deploy your cloud servers.
Once you have signed up, log into your Cloudwafer Client Area and deploy your Cloudwafer cloud server.
Updating System Packages
It is recommended that you update the system to the latest packages before beginning any major installations. Issue the command below:
sudo apt-get update && sudo apt-get upgrade
Step 1: Install apt-transport-https
apt-transport-https package is necessary to access a repository over HTTPS, hence we are going to issue the command below to install it.
sudo apt install apt-transport-https
Step 2: Enable Apache Cassandra repository
Issue the command below to import the Apache Cassandra repository’s public key using the following wget command:
wget -q -O - https://www.apache.org/dist/cassandra/KEYS | sudo apt-key add -
Next, add the Cassandra repository to the apt list by issuing the command below:
sudo sh -c 'echo "deb http://www.apache.org/dist/cassandra/debian 311x main" > /etc/apt/sources.list.d/cassandra.list'
Update the repositories before installing:
sudo apt-get update sudo apt install cassandra
Step 6: Enable Cassandra After successfully installing, the Cassandra service will start automatically. Issue the command to enable it to start on boot:
sudo systemctl enable cassandra
You can issue the command below to check the status of the Cassandra service.
sudo systemctl status cassandra
You can read the documentation of Apache Cassandra for more information