Friday, March 13, 2026

First steps from Cassandra: installation and installation

Share

First steps from Cassandra: installation and installationPhoto by the author

Entry

Apache Cassandra is a distributed NOSQL Open Source database system designed to manage huge amounts of data on many servers to ensure high availability and performance. It is known for its horizontal scalability in applications where reliability, speed and time of update is essential. This guide will lead you through the Cassandra installation and configuration process LinuxIN WindowsAND Macos. It shows how to configure the system, connect with Cassandra Shell and prepare for managing data on a scale.

Originally developed by Facebook and later adopted by Apache software FoundationCassandra is known for servicing huge amounts of data on many servers without a single failure point. Uses a unique data storage mechanism called A Data storage model. This is “Peer-to-peer” This means that there is no central server in the system. Each node is equally essential. This approach allows Cassandra to provide excellent tolerance to faults and is ideal for applications that require constant time updating and rapid data availability, such as e-commerce, real-time analytics and IoT.

Architecture and key functions

Apply cases and integration in enormous data sets ecosystems

Cassandra, known for supplying real -time recommendations, analytical platforms and decentralized storage systems, is widely used in industries such as social media, finance and telecommunications, in which quick access to data and reliability are necessary. In addition, Cassandra smoothly integrates with enormous data sets tools, such as Apache Spark and Apache Kafka, which makes him a great choice for real -time data pipelines, which require the possibility of processing and high -performance storage and storage.

Preliminary requirements

To install and configure Cassandra, make sure you meet the following requirements:

  • Basic knowledge of the command line: A certain knowledge of using the command line will simplify the configuration process
  • Operating system compatibility: You should have a system:
    • Linux (Ubuntu/Debian or Red Hat/Rocky Linux)
    • Windows (using Windows for Linux)
    • Macos
  • Internet connection: Required Cassandra and other dependencies
  • Administrator’s privileges: You will need permission to install software in the system, especially in Windows and Linux systems

Step by step guide for installation

Installation of Cassander in Linux

Let’s start by installing Cassandra in Linux distributions, such as Ubuntu/Debian and Red Hat/Rocky.

Install on Ubuntu/Debian

  • Install Java: Cassandra requires java, so start by installing OpenJDK. Open your terminal and run:
sudo apt update
sudo apt install openjdk-11-jdk
  • Check the installation by checking the Java version:
  • Add Cassandra repository: To utilize the latest stable version, add the Cassandra repository:
echo "deb https://www.apache.org/dist/cassandra/debian 40x main" | sudo tee -a /etc/apt/sources.list.d/cassandra.sources.list
  • Add GPG key: The key of the Cassandra repository is required for a secure installation:
curl https://www.apache.org/dist/cassandra/KEYS | sudo apt-key add -
  • Update the list of packages and install Cassandra: Now update the list of packages and install Cassandra:
sudo apt update
sudo apt install cassandra
  • Start and turn on Cassandra: Cassandra should start automatically. To start manually, utilize:
sudo systemctl start cassandra
  • Allow Cassandra to start with:
sudo systemctl enable cassandra

Install on Red Hat/Rocky Linux

  • Install Java: As in the case of Ubuntu, you must first install Java:
sudo systemctl enable cassandra
  • Add Cassandra repository:
sudo nano /etc/yum.repos.d/cassandra.repo
  • Add the following poems to the file and save:
[cassandra]
name=Apache Cassandra
baseurl=https://www.apache.org/dist/cassandra/redhat/40x/
gpgcheck=1
repo_gpgcheck=1
gpgkey=https://www.apache.org/dist/cassandra/KEYS
  • Install Cassandra: Update the repository index and install Cassandra:
sudo yum install cassandra
  • Start and turn on Cassandra: Start the Cassandra service and allow it to start in starting:
sudo systemctl start cassandra
sudo systemctl enable cassandra

Installing Cassander in Windows

To install Cassandra in Windows, we will utilize Windows for Linux (WSL).

  • Configure WSL and install Ubuntu and restart your computer if you display:

Turn on WSL2: Make sure you utilize Windows 10 Version 2004 or Higher or Windows 11. Open PowerShell as an administrator and turn on WSL

  • Install Ubuntu via Microsoft Store: Download and install Ubuntu from the Microsoft store. After installing, open Ubuntu to complete the configuration
  • Install Cassandra in Ubuntu (via WSL): After starting Ubuntu in WSL, install Java
sudo apt update
sudo apt install openjdk-11-jdk
  • Add the repository and the Cassandra key:
echo "deb https://www.apache.org/dist/cassandra/debian 40x main" | sudo tee -a /etc/apt/sources.list.d/cassandra.sources.list
curl https://www.apache.org/dist/cassandra/KEYS | sudo apt-key add -
sudo apt update
sudo apt install cassandra
sudo service cassandra start
  • Test the installation: To test that Cassandra works, connect to the Cassandra (CQLSH) coating and start the command

You should see the hint of Cassandra Shell (CQLSH>) They appear, indicating a successful connection.

Installing Cassander on MacOS

The easiest way to install Cassandra on MacOS is to utilize homebrew. Make sure Homebrew It is installed in your system. If this is not the case, install it, activating:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
  • Install Java: Cassandra requires Java, so first make sure it is installed by homebrew:
  • Start Cassandra: Cassandra will not start automatically. You can start with:
brew services start cassandra
  • Test the installation: To check if Cassandra works, open the Cassandra coating:

Enter the ping to check the connection. If the shell corresponds to the prompt, the installation has been successful.

Cassandra management

After starting Cassandra, you can start, stop or run it as follows:

sudo systemctl start cassandra
sudo systemctl stop cassandra
sudo systemctl restart cassandra

Application

In this guide you have learned to install and configure Apache Cassandra LinuxIN WindowsAND Macos. You also learned how to start and stop the Cassandra service, connect with it through it CQLSHAnd check its functionality. Distributed Peer-to-Peer Cassandra architecture makes it a solid and scalable solution for managing huge amounts of data.

Its compatibility with various platforms of operating systems makes it available to a wide range of users. After starting Cassandra, you are ready to examine a prosperous set of functions for managing dispersed data.

Shitttu chemive He is a software engineer and a technical writer, passionate about the utilize of the latest technologies to create attractive narratives, with a edged eye to details and talent to simplify sophisticated concepts. You can also find shitttu on Twitter.

Latest Posts

More News