Apache Cassandra is a high performance open source, Masterless and NoSQL database. That provides scalability, fault tolerance and using in multiple nodes.
Most of replication node data in using the Cassandra providing high availability and zero points of failure.
Many companies using the Apache Cassandra include Facebook, Netflix, Cisco, Twitter, and many more.
Prerequisites
- Non root user, 2GB RAM
- OpenJDK 8 OR OpenJDK 11 OR Oracle Java Standard Edition 8 OR Oracle Java Standard Edition 11
Step 1: Installing Java on Ubuntu
Fist check on your system java version installed or not.
java --version
Incase not installed in your system java. Then you can installed java below command through installed it.
sudo apt install openjdk-8-jdk
Then check again java version.
java --version
Install the apt-transport-https Package
sudo apt install apt-transport-https
Step 2: Update the Linux ubuntu package
First update and upgrade the package
sudo apt update
sudo apt upgrade
Step 3: When update has completed, Then add use the Cassandra repository and Import GPG key in the system:
sudo sh -c 'echo "deb http://www.apache.org/dist/cassandra/debian 40x main" > /etc/apt/sources.list.d/cassandra.list'
wget -q -O - https://www.apache.org/dist/cassandra/KEYS | sudo apt-key add -
Step 4: Install Apache Cassandra
sudo apt update
sudo apt install Cassandra
sudo systemctl status cassandra
Now, verify the using node command.
sudo nodetool status
Step 5: Rename the cluster name and IP address
sudo nano /etc/cassandra/cassandra.yaml
You can changed cassandra.yaml file in a cluster name, port no and seeds ip address.
Step 6: Test for cassandra checked for below command
cqlsh
This command through you can check Cassandra connection to the localhost.
0 Comments