Install Apache Cassandra on Ubuntu 18.04.5 | Step By Step | Part 9


Install Apache Cassandra on Ubuntu

Prerequisites

Java should be installed

java -version

which java

Install Apache Cassandra

Install the apt-transport-https Package

sudo apt install apt-transport-https

Add Apache Cassandra Repository and Import GPG Key

echo "deb http://www.apache.org/dist/cassandra/debian 39x main" | sudo tee -a /etc/apt/sources.list.d/cassandra.sources.list

sudo apt install curl

sudo curl https://www.apache.org/dist/cassandra/KEYS | sudo apt-key add -

You are now ready to install Cassandra on Ubuntu

sudo apt-get update

sudo apt-get install cassandra

If key error occurs, use this

sudo apt-key adv --keyserver pool.sks-keyservers.net --recv-key A278B781FE4B2BDA

sudo apt-get update

sudo apt-get install cassandra

nodetool status

sudo systemctl status cassandra

sudo systemctl start cassandra

sudo systemctl restart cassandra

sudo systemctl stop cassandra

sudo systemctl enable cassandra

sudo systemctl start cassandra

cqlsh

describe keyspaces

describe tables

Happy Learning !!!

Post a Comment

0 Comments