Skip to content

emka.web.id

menulis pengetahuan – merekam peradaban

Menu
  • Home
  • Tutorial
  • Search
Menu

How to Install Apache Cassandra on Debian 11 / Debian 10

Posted on August 29, 2021

Apache Cassandra, or simply Cassandra, is an open-source distributed database management system designed to handle large amounts of data across many commodity servers, providing high availability with no single point of failure.

Every Cassandra node in the cluster will have the same role. Data is distributed across the cluster, which means each node holds different data. Also, it supports replication and multi-datacenter replication for redundancy, failover, and disaster recovery.

Here, we will see how to install Apache Cassandra on Debian 11 / Debian 10.

Install Java

Update repository index.

sudo apt update

Apache Cassandra requires the latest version of Java 8. But, OpenJDK 8 is not available in Debian 11/10. Also, Cassandra 4.0  supports Java 11 (EXPERIMENTAL). So, we will use OpenJDK 11 in place of OpenJDK 8.

# Debian 11 sudo apt install -y openjdk-11-jre # Debian 10 sudo apt install -y openjdk-8-jre

Check the Java version post the installation of OpenJDK.

java -version

You will get similar output like below.

openjdk version "11.0.12" 2021-07-20 OpenJDK Runtime Environment (build 11.0.12+7-post-Debian-2) OpenJDK 64-Bit Server VM (build 11.0.12+7-post-Debian-2, mixed mode, sharing)

Add Apache Cassandra Repository

We will install Cassandra using the official Debian repository provided by Apache Software Foundation.

First, add the public key of the Cassandra repository to the system.

sudo apt install -y curl curl https://downloads.apache.org/cassandra/KEYS | sudo apt-key add -

Add Cassandra repository to your system with the below command.

echo "deb https://downloads.apache.org/cassandra/debian 40x main" | sudo tee -a /etc/apt/sources.list.d/cassandra.sources.list

Install Apache Cassandra on Debian

First, update the repository index.

sudo apt update

Then, install Cassandra with the below command.

sudo apt install -y cassandra

You can find Cassandra’s configuration files in /etc/cassandra and the logs and data are in /var/log/cassandra/ and /var/lib/cassandra, respectively.

Ensure Cassandra is up and running with the below command.

sudo systemctl status cassandra

You will get similar output like below.

● cassandra.service - LSB: distributed storage system for structured data Loaded: loaded (/etc/init.d/cassandra; generated) Active: active (running) since Sat 2021-08-28 12:22:57 CDT; 21min ago Docs: man:systemd-sysv-generator(8) Process: 5336 ExecStart=/etc/init.d/cassandra start (code=exited, status=0/SUCCESS) Tasks: 69 (limit: 2321) Memory: 1.3G CPU: 1min 7.794s CGroup: /system.slice/cassandra.service └─5461 java -ea -da:net.openhft... -XX:+UseThreadPriorities -XX:+HeapDumpOnOutOfMemoryError -Xss256k -XX:+AlwaysPreTouch -XX:-UseBiasedLocking -XX:+UseTLA> Aug 28 12:22:57 debian11.itzgeek.local systemd[1]: Starting LSB: distributed storage system for structured data... Aug 28 12:22:57 debian11.itzgeek.local systemd[1]: Started LSB: distributed storage system for structured data. 

Verify Apache Cassandra Cluster

Wait for a minute to let the cluster comes online. Then, you can verify the Cassandra cluster by executing the below command.

sudo nodetool status

The below output confirms that the Cassandra cluster is up and running.

Datacenter: datacenter1 ======================= Status=Up/Down |/ State=Normal/Leaving/Joining/Moving --  Address    Load       Tokens  Owns (effective)  Host ID                               Rack UN  127.0.0.1  69.05 KiB  16      100.0%            fb0e8bf7-dcf4-41a6-96de-e8f230f1b797  rack1 

Means,
U – Cluster is UPN – Cluster is Normal

Connect to the Cassandra cluster using the cqlsh command.

cqlsh

You are now connected to the cluster.

Connected to Test Cluster at 127.0.0.1:9042 [cqlsh 6.0.0 | Cassandra 4.0.0 | CQL spec 3.4.5 | Native protocol v5] Use HELP for help. cqlsh>

Sumber: disini

Terbaru

  • Inilah 5 HP Murah Terbaru dengan Baterai Jumbo yang Siap Masuk Indonesia 2026, Ada yang Sampai 7.800 mAh!
  • Inilah Alasan Kenapa Samsung Galaxy S27 Bakal Pakai 50 Persen Chipset Exynos, Qualcomm Mulai Ditinggalkan?
  • Inilah Vivo Y31d Pro, Smartphone “Badak” dengan Baterai 7000mAh dan Ketahanan Standar Militer
  • Inilah 11 Game Penghasil Saldo DANA Tercepat 2026, Cara Asyik Cari Cuan Sambil Rebahan!
  • Inilah Motorola Edge 70 Pro, HP Midrange Gahar dengan Baterai 6500 mAh yang Siap Meluncur!
  • Inilah Kode Redeem FF Max 15 April 2026, Buru Skin Undersea Splatter dan Item Eksklusif Bawah Laut Sekarang!
  • Inilah Bocoran Vivo X500 Series dan Kamera Vlogging Saku yang Bakal Bikin DJI Ketar-ketir!
  • Inilah 6 Rekomendasi HP Gaming Paling Murah April 2026, Main Game Berat Nggak Pake Lag!
  • Inilah Caranya Manfaatin SPayLater di Aplikasi ShopeePay Biar Keuangan Tetap Aman Saat Tanggal Tua
  • Inilah Perbedaan Durasi Reels IG dan FB Terbaru 2026, Ternyata Bisa Sampai 20 Menit Lho!
  • Inilah Cara Mengurus Surat Keterangan Bebas Narkoba (SKBN), Syarat Lengkap, Biaya, dan Lokasi Pembuatannya
  • Inilah Cara Pakai Panel Zurra v2 FF Aim Lock Headshot, Simak Fitur dan Risikonya Sebelum Pakai!
  • Inilah Alasan Kenapa Sesi Akhir UTBK 2026 Nggak Lebih Sulit dan Penjelasan Lengkap Sistem Penilaiannya
  • Inilah Kenapa Tidak Bisa Login WA Web dan Solusi Paling Ampuh Biar Langsung Connect Lagi
  • Inilah Cara Mengatasi MyTelkomsel Oops Terjadi Kesalahan, Jangan Panik Dulu!
  • Inilah Cara Mengisi SKP Satpol PP dan Pranata Trantibum 2026 di e-Kinerja My ASN, Dijamin Anti Ribet!
  • Inilah Cara Akses IPTV Playlist M3U Indonesia Terbaru 2026, Nonton Ribuan Channel Tanpa Biaya!
  • Tutorial SEO Anchor Link: Cara Dapat Ranking di Google Lewat Strategi Link Building yang Aman
  • Inilah Huawei Pura 90 Pro, HP Flagship dengan Desain Kamera Segitiga Unik dan Performa Kirin yang Makin Gahar
  • Inilah 5 Rekomendasi Kipas Tangan Portable Cas Tahan Lama Biar Kalian Tetap Adem Saat Cuaca Panas Ekstrem
  • Inilah MacBook Neo, Laptop Termurah Apple yang Ternyata Punya Performa Gaming Gila!
  • Inilah Daftar Tablet SIM Card 5G dengan Keyboard Terbaik 2026 untuk Kerja Remote
  • Inilah Daftar Game Penghasil Pulsa 2026, Cara Cerdas Dapat Kuota Gratis Tanpa Keluar Duit Sepeserpun!
  • Inilah Caranya Klaim Bonus Kuota Lokal Smartfren 2026, Jangan Sampai Bonus Kalian Hangus Sia-sia!
  • Inilah Cara Mengatasi Rockstar Games Launcher Not Responding dan Macet Saat Connecting
  • Inilah Cara Cek HP Masih Kredit atau Sudah Lunas Biar Kalian Nggak Ketipu Pas Beli Bekas
  • Inilah Cara Pakai Astute FF Beta Apk 2026, Rahasia Unlock Server 2.0 Tanpa Verifikasi!
  • Inilah Ketentuan Foto UM-PTKIN 2026 yang Benar Biar Nggak Gagal Verifikasi Administrasi
  • Inilah Cara Persiapan E IJAZAH 2026 yang Benar Buat Operator Sekolah Agar Data Siswa Aman dan Valid
  • Inilah Cara Cek Status PKH April 2026 Secara Akurat, Dana Bansos Sudah Masuk Rekening Belum Ya?
  • Is it Time to Replace Nano? Discover Fresh, the Terminal Text Editor You Actually Want to Use
  • How to Design a Services Like Google Ads
  • How to Fix 0x800ccc0b Outlook Error: Step-by-Step Guide for Beginners
  • How to Fix NVIDIA App Error on Windows 11: Simple Guide
  • How to Fix Excel Formula Errors: Quick Fixes for #NAME
  • How to Fine-Tune Gemma 4 Model: A Beginner Tutorial on Using Unsloth for Faster Training
  • How to Run Your Entire Business with an AI Agency: A Complete Tutorial on SureThing 2.0
  • How to Build Your Own Digital Workforce with Factory AI Droids
  • MiniMax M2.7 Tutorial: Mastering the 229B Parameter MoE Model for Advanced AI Development
  • Complete Tutorial on Gemma 4: Build and Automate Anything Locally for Free with Google’s New AI
  • Apa itu Spear-Phishing via npm? Ini Pengertian dan Cara Kerjanya yang Makin Licin
  • Apa Itu Predator Spyware? Ini Pengertian dan Kontroversi Penghapusan Sanksinya
  • Mengenal Apa itu TONESHELL: Backdoor Berbahaya dari Kelompok Mustang Panda
  • Siapa itu Kelompok Hacker Silver Fox?
  • Apa itu CVE-2025-52691 SmarterMail? Celah Keamanan Paling Berbahaya Tahun 2025

©2026 emka.web.id | Design: Newspaperly WordPress Theme