Apache Cassandra
Cassandra is one of the most widely used NoSQL databases from column data stores. We have already discussed the different functionalities and benefits of Cassandra in the previous chapter. Let's now do some hands-on.
Installation
First of all, we will go through a step-by-step guide for installing Cassandra, as follows:
- Download the Cassandra package from the website https://cassandra.apache.org/download/. The Current stable release is 3.11.1.
- Extract the package by executing the following command. It will be extracted in the directory
apache-cassandra-3.11.1
. In our case, the full path will be/home/hadoopadmin/apache-cassandra-3.11.1/
. The following command illustrates this process:
$ tar zxvf apache-cas sandra-3.11.1-bin.tar.gz
- Set up the environment variable by executing the following command:
$ gedit ~/.bashrc
- Copy the following line at the end of the file and save it. Make sure to change the path as per your installation:
# Cassandra Environment export CASSANDRA_HOME="/home...