banner



How To Install Cassandra On Centos

Apache Cassandra is a very popular NoSQL database created by Facebook Inc. merely later on owned by Apache Foundation. It was designed and congenital for the ease of scalability and management of big databases. Apache Cassandra is a must-go database Management Organisation for you lot if your business concern is high availability and scalability. This post will have you to a step-by-step guide on installing and configuring Apache Cassandra on CentOS 8 Operating organisation.

Installation of Apache Cassandra on CentOS 8

Apache Cassandra can exist installed by downloading the RPM package through the official repository of Apache Cassandra.

But, earlier getting started with the installation and configuration of Apache Cassandra on CentOS eight, we need to accept OpenJDK 8 installed on the CentOS viii organisation.  Y'all can verify the installed version of Java, either it is installed or not on your system, by typing the command given below:

If it is not installed on your system, you can install it using the procedure given below or pre-installed on your arrangement; yous can skip the installation function of OpenJDK on CentOS 8.

Install Open JDK on CentOS eight

OpenJDK is bachelor in CentOS 8'southward official repository and can easily be installed.

First of all, update the organisation's parcel repository cache:

Subsequently updating your CentOS 8's system repository enshroud, update information technology:


Later upgrading the system's existing packages, you can move frontward to installing OpenJDK 8 on CentOS 8 for Apache Cassandra. To install OpenJDK from CentOS eight official repository, blazon the control given below in the last:

$ sudo dnf install java-1.8.0-openjdk-devel


Blazon "y" and hitting "Enter".


Afterward installing OpenJDK, verify by typing the command given below:


You can witness that the installed version of OpenJDK is ane.8.0. Permit'due south motility ahead.

Install Apache Cassandra

To install Apache Cassandra, we take to add the repository of Apache Cassandra to the system.

To add Apache Cassandra repository to the CentOS 8 system. Create a "/etc/yum.repos.d/cassandra.repo" file by typing the command:

$ sudo nano /etc/yum.repos.d/cassandra.repo

In the newly created Cassandra repository file, paste the content given below in that file.

[cassandra]
name=Apache Cassandra
baseurl=https://www.apache.org/dist/cassandra/redhat/311x/
gpgcheck=1
repo_gpgcheck=1
gpgkey=https://www.apache.org/dist/cassandra/KEYS


After adding the above content, relieve the file and exit using the keyboard shortcut keys (CTRL+S) and (CTRL+Ten).

Now, install the Apache Cassandra by typing the command given below:

$ sudo dnf install cassandra -y

Apache Cassandra is installed on CentOS 8. Now, Apache Cassandra'due south service won't automatically kickoff. You offset take to enable it past typing the command given below:

$ sudo systemctl enable cassandra

Then, start the service by typing the following command:

$ sudo systemctl start cassandra

Now, in order to verify, check the condition of the Apache Cassandra service past typing the control given below:

$ sudo systemctl status cassandra

At this stage, Apache Cassandra is successfully installed and running perfectly fine on the CentOS eight machine. Let'south configure information technology and log in to its CQL beat out.

How to configure Apache Cassandra on CentOS 8

Apache Cassandra has its own CQL (Cassandra Query Linguistic communication), but like SQL. To login to Cassandra'south control-line utility, known as CQL shell or "cqlsh", we have to install an advisable python interpreter first. To install Python 2 and access the CQL shell on CentOS 8, type the command given below:

$ sudo dnf install python2

Type "y" and printing "Enter".

One time Python2 is installed, log in to the CQL shell using the command line utility of Cassandra by typing the following command in CentOS 8 terminal:

You tin can witness in the screenshot; we accept successfully logged in to the CQL shell.

This is how simply nosotros can configure the Apache Cassandra on CentOS eight and beginning using information technology.

Determination

Apache Cassandra Database is used by many large names in the industry like Facebook, Instagram, Netflix, and Reddit. This post contains a clear understanding and profound guide on how to install and configure Apache Cassandra on CentOS viii.

Almost the author

A Javascript Programmer & Linux enthusiast with 4 years of industrial experience and proven know-how to combine creative and usability viewpoints resulting in globe-form web applications. I have experience working with Vue, React & Node.js & currently working on article writing and video creation.

Source: https://linuxhint.com/install-apache-cassandra-centos-8/

Posted by: edwardsretiould.blogspot.com

0 Response to "How To Install Cassandra On Centos"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel