banner



How To Install Cassandra On Ubuntu

Cassandra is a free and open up-source distributed NoSQL database used for managing voluminous amounts of data across multiple servers, while at the same time providing high availability and zero points of failure.

Apache Cassandra provides linear calibration performance, fault tolerance, high availability and seamless data distribution across multiple servers and cloud availability zones. In this tutorial, you lot volition learn how to install Apache Cassandra on Ubuntu 18.04 LTS.

Installing Apache Cassandra in Ubuntu 18.04 LTS

Let's brainstorm.

Stride 1. Installing Oracle Coffee 11

To first off, install Java by following the unproblematic commands outlined below.

Add the Oracle Java 11 PPA repository as shown below:

sudo add-apt-repository ppa:linuxuprising/java

Sample output

add oracle java 10 PPA

Next, update the software repositories:

sudo apt update

Sample output

update system repositories Ubuntu 18.04 LTS

Afterwards adding the Coffee PPA and updating the organization, you tin go along to install Java by running the command beneath.

sudo apt install oracle-java11-set-default

Sample output

Install Oracle Java 11

Now you  can become alee and verify the version of Java installed by running:

java --version

Output

checking java version

The output above is concrete proof that you have installed Java 11 on your organization. Go along to the next step.

Step 2. Calculation Cassandra repository to the Ubuntu Source list

In this step, yous will add Cassandra's repository to Ubuntu'southward sources list as shown in the command beneath:

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

Output

add cassandra's repository to Ubuntu sources list

Pace iii. Add Apache Cassandra's repository Keys

Side by side, add together Cassandra's repository keys using the command beneath

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

Output

add Apache Cassandra repository keys

Pace iv. Install Apache Cassandra

After appending Cassandra'south repository keys, update the arrangement repositories for the changes to exist registered.

sudo apt update

Run the command beneath to install Cassandra:

sudo apt install cassandra

Sample Output

install Cassandra on Ubuntu 18.04 LTS

To bank check if Cassandra is running execute:

systemctl condition cassandra

Sample Output

systemctl status cassandra

Awesome! From the output higher up, we can clearly see that Cassandra is up and running.

Step 5. Connecting to  Apache Cassandra

With the installation of Cassandra on your organisation, a cluster is automatically set up with a unmarried node as function of the cluster. To cheque if the cluster is running, execute:

sudo nodetool status

Sample Output

ATTACHMENT DETAILS sudo-nodetool-status.png February 12, 2022 16 KB 644 × 160 Edit Image URL https://www.fosslinux.com/wp-content/uploads/2019/02/sudo-nodetool-status.png

The UN in the output is a strong indicator that Cassandra is upwards and running. To connect to the Cassandra cluster run the following command:

cqlsh

Output

connect to Cassasndra

Swell! Now you can proceed and execute your commands on this prompt.

Thank you for coming this far. Feel free to share and leave your feedback on this mail service.

Source: https://www.fosslinux.com/7103/how-to-install-apache-cassandra-in-ubuntu-18-04-lts.htm

Posted by: smithhationt.blogspot.com

0 Response to "How To Install Cassandra On Ubuntu"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel