{"id":13551,"date":"2025-02-13T06:56:50","date_gmt":"2025-02-13T06:56:50","guid":{"rendered":"https:\/\/greenwebpage.com\/community\/?p=13551"},"modified":"2025-02-13T06:56:53","modified_gmt":"2025-02-13T06:56:53","slug":"how-to-install-apache-cassandra-on-ubuntu-24-04","status":"publish","type":"post","link":"https:\/\/greenwebpage.com\/community\/how-to-install-apache-cassandra-on-ubuntu-24-04\/","title":{"rendered":"How to Install Apache Cassandra on Ubuntu 24.04: Top 3 Ways"},"content":{"rendered":"\n<p><a href=\"https:\/\/cassandra.apache.org\/_\/index.html\">Apache Cassandra <\/a>is a robust, distributed database system capable of storing and processing immense volumes of data across multiple commodity hardware servers. Its fault-tolerant architecture ensures uninterrupted availability and protects against data loss. For managing large-scale data in a distributed environment, Ubuntu servers paired with Apache Cassandra offer a powerful solution. Cassandra&#8217;s masterless design enables robust data replication and high availability.<\/p>\n\n\n\n<p>This article will guide you through installing Apache Cassandra on Ubuntu 24.04.<\/p>\n\n\n\n<p><a href=\"#Installing-Apache-Cassandra-on-Ubuntu-24.04\">Installing Apache Cassandra on Ubuntu 24.04<\/a><\/p>\n\n\n\n<p><a href=\"#post-13551-_heading=h.4i7ojhp\">Configuring Apache Cassandra on Ubuntu 24.04<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"Installing-Apache-Cassandra-on-Ubuntu-24.04\"><a id=\"post-13551-_heading=h.gjdgxs\"><\/a>Installing Apache Cassandra on Ubuntu 24.04<\/h2>\n\n\n\n<p>Cassandra, a freely available NoSQL database, is designed to effortlessly handle and maintain vast amounts of data without downtime. Its ability to scale seamlessly across multiple servers makes it ideal for applications demanding fault tolerance.<\/p>\n\n\n\n<p>There are several methods to install Cassandra. The most common approaches include:<\/p>\n\n\n\n<p><a href=\"#Method-1:-Using-the-Cassandra-Repository\">Method 1: Using Cassandra Repository<\/a><\/p>\n\n\n\n<p><a href=\"#Method-2:-Using-a-Binary-Tarball\">Method 2: Using a Binary Tarball<\/a><\/p>\n\n\n\n<p><a href=\"#Method-3:-Using-Docker-Image\">Method 3: Using Docker Image<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"Method-1:-Using-the-Cassandra-Repository\"><a id=\"post-13551-_heading=h.30j0zll\"><\/a>Method 1: Using the Cassandra Repository<\/h2>\n\n\n\n<p>Apache Cassandra&#8217;s robust capabilities make it ideal for mission-critical data management. To set it up on Ubuntu 24.04, follow these steps:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-13551-_heading=h.1fob9te\"><\/a>Step 1: Installing Java<\/h3>\n\n\n\n<p>To run Cassandra, you&#8217;ll need either Java 8 or Java 11 installed. Let&#8217;s get started by installing Java 11 with the apt command:<\/p>\n\n\n\n<pre>sudo apt update <br>sudo apt install openjdk-11-jdk<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1122\" height=\"500\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/02\/word-image-13551-1.png\" alt=\"sudo apt install openjdk-11-jdk\" class=\"wp-image-13552\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/02\/word-image-13551-1.png 1122w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/02\/word-image-13551-1-300x134.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/02\/word-image-13551-1-1024x456.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/02\/word-image-13551-1-768x342.png 768w\" sizes=\"(max-width: 1122px) 100vw, 1122px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>To authenticate the installation process, run the &#8220;<strong>version<\/strong>&#8221; command:<\/p>\n\n\n\n<pre>java -version<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"1124\" height=\"217\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/02\/word-image-13551-2.png\" alt=\"java -version\" class=\"wp-image-13553\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/02\/word-image-13551-2.png 1124w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/02\/word-image-13551-2-300x58.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/02\/word-image-13551-2-1024x198.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/02\/word-image-13551-2-768x148.png 768w\" sizes=\"(max-width: 1124px) 100vw, 1124px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-13551-_heading=h.3znysh7\"><\/a>Step 2: Add the Apache Cassandra Repository<\/h3>\n\n\n\n<p>Next, add the Apache Cassandra 4.1.x repository to your system&#8217;s software sources:<\/p>\n\n\n\n<pre>echo \"deb https:\/\/debian.cassandra.apache.org 41x main\" | sudo tee -a \/etc\/apt\/sources.list.d\/cassandra.sources.list<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"1127\" height=\"158\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/02\/word-image-13551-3.png\" alt=\"echo &quot;deb https:\/\/debian.cassandra.apache.org 41x main&quot; | sudo tee -a \/etc\/apt\/sources.list.d\/cassandra.sources.list\" class=\"wp-image-13554\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/02\/word-image-13551-3.png 1127w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/02\/word-image-13551-3-300x42.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/02\/word-image-13551-3-1024x144.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/02\/word-image-13551-3-768x108.png 768w\" sizes=\"(max-width: 1127px) 100vw, 1127px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-13551-_heading=h.2et92p0\"><\/a>Step 3: Import Cassandra GPG Key<\/h3>\n\n\n\n<p>Users must provide the public key at this stage to guarantee a conflict-free installation process:<\/p>\n\n\n\n<pre>curl https:\/\/downloads.apache.org\/cassandra\/KEYS | sudo apt-key add -<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1208\" height=\"279\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/02\/word-image-13551-4.png\" alt=\"curl https:\/\/downloads.apache.org\/cassandra\/KEYS | sudo apt-key add -\" class=\"wp-image-13555\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/02\/word-image-13551-4.png 1208w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/02\/word-image-13551-4-300x69.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/02\/word-image-13551-4-1024x237.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/02\/word-image-13551-4-768x177.png 768w\" sizes=\"(max-width: 1208px) 100vw, 1208px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-13551-_heading=h.tyjcwt\"><\/a>Step 4: Install Cassandra<\/h3>\n\n\n\n<p>Refresh the package lists and install the newest Cassandra version available:<\/p>\n\n\n\n<pre>sudo apt update <br>sudo apt install cassandra<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1221\" height=\"525\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/02\/word-image-13551-5.png\" alt=\"sudo apt install cassandra\" class=\"wp-image-13556\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/02\/word-image-13551-5.png 1221w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/02\/word-image-13551-5-300x129.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/02\/word-image-13551-5-1024x440.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/02\/word-image-13551-5-768x330.png 768w\" sizes=\"(max-width: 1221px) 100vw, 1221px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-13551-_heading=h.3dy6vkm\"><\/a>Step 5: Check Cassandra Services<\/h3>\n\n\n\n<p>Cassandra automatically starts after installation. Verify its operation with the &#8216;<strong>status&#8217; <\/strong>utility:<\/p>\n\n\n\n<pre>sudo systemctl status cassandra<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1220\" height=\"441\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/02\/word-image-13551-6.png\" alt=\"sudo systemctl status cassandra\" class=\"wp-image-13557\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/02\/word-image-13551-6.png 1220w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/02\/word-image-13551-6-300x108.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/02\/word-image-13551-6-1024x370.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/02\/word-image-13551-6-768x278.png 768w\" sizes=\"(max-width: 1220px) 100vw, 1220px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>To resolve any systematic issue, execute the below commands to enable as well as start the services:<\/p>\n\n\n\n<pre>sudo systemctl enable cassandra # Enable Services <br>sudo systemctl start cassandra # Start Services<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-13551-_heading=h.1t3h5sf\"><\/a>Step 6: Connect to Cluster<\/h3>\n\n\n\n<p>To assess the status of the Cassandra cluster, execute the command below. This provides a comprehensive overview of your cluster&#8217;s topology and current state:<\/p>\n\n\n\n<pre>nodetool status<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1227\" height=\"370\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/02\/word-image-13551-7.png\" alt=\"nodetool status\" class=\"wp-image-13558\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/02\/word-image-13551-7.png 1227w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/02\/word-image-13551-7-300x90.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/02\/word-image-13551-7-1024x309.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/02\/word-image-13551-7-768x232.png 768w\" sizes=\"(max-width: 1227px) 100vw, 1227px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-13551-_heading=h.4d34og8\"><\/a>Step 7: Access Apache Cassandra Shell<\/h3>\n\n\n\n<p>To interact with Apache Cassandra directly, users can employ the command-line interface provided by cqlsh:<\/p>\n\n\n\n<pre>cqlsh<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1122\" height=\"183\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/02\/word-image-13551-8.png\" alt=\"cqlsh\" class=\"wp-image-13559\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/02\/word-image-13551-8.png 1122w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/02\/word-image-13551-8-300x49.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/02\/word-image-13551-8-1024x167.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/02\/word-image-13551-8-768x125.png 768w\" sizes=\"(max-width: 1122px) 100vw, 1122px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>To resolve any issues, execute the following command: &#8220;<strong>sudo snap install cqlsh<\/strong>\u201d.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-13551-_heading=h.2s8eyo1\"><\/a>Remove Apache Cassandra on Ubuntu 24.04<\/h3>\n\n\n\n<p>To uninstall Apache Cassandra and its dependencies from Ubuntu 24.04, employ the &#8216;autoremove&#8217; option within the &#8216;apt&#8217; command. For a complete removal, also eliminate the associated GPG key and repository from your system:<\/p>\n\n\n\n<pre>sudo apt autoremove --purge cassandra <br>sudo rm \/etc\/apt\/sources.list.d\/cassandra.list <br>sudo rm \/etc\/apt\/trusted.gpg.d\/cassandra-key.gpg<\/pre>\n\n\n\n<p>This is all from the installation.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"Method-2:-Using-a-Binary-Tarball\"><a id=\"post-13551-_heading=h.17dp8vu\"><\/a>Method 2: Using a Binary Tarball<\/h2>\n\n\n\n<p>To manually install Apache Cassandra on Ubuntu 24.04 using the binary archive, follow these steps:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-13551-_heading=h.3rdcrjn\"><\/a>Prerequisites: Install Java 8 or Java 11<\/h3>\n\n\n\n<p>The Ubuntu system needs Java 8 as well as Java 11 to operate. Verify this before proceeding:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-13551-_heading=h.26in1rg\"><\/a>Step 1: Download the Cassandra Binary Tarball<\/h3>\n\n\n\n<p>Once your Java environment is configured, proceed to download the compressed Cassandra binary file from the official <a href=\"https:\/\/archive.apache.org\/dist\/cassandra\/\">Apache Cassandra website<\/a>:<\/p>\n\n\n\n<pre>wget https:\/\/archive.apache.org\/dist\/cassandra\/4.1.4\/apache-cassandra-4.1.4-bin.tar.gz<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1131\" height=\"560\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/02\/word-image-13551-9.png\" alt=\"wget https:\/\/archive.apache.org\/dist\/cassandra\/4.1.4\/apache-cassandra-4.1.4-bin.tar.gz\" class=\"wp-image-13560\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/02\/word-image-13551-9.png 1131w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/02\/word-image-13551-9-300x149.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/02\/word-image-13551-9-1024x507.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/02\/word-image-13551-9-768x380.png 768w\" sizes=\"(max-width: 1131px) 100vw, 1131px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-13551-_heading=h.lnxbz9\"><\/a>Step 2: Extract the Tarball<\/h3>\n\n\n\n<p>Uncompress the downloaded tarball using the &#8216;<strong>tar xzvf<\/strong>&#8216; command:<\/p>\n\n\n\n<pre>tar xzvf apache-cassandra-4.1.4-bin.tar.gz<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1123\" height=\"433\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/02\/word-image-13551-10.png\" alt=\"tar xzvf apache-cassandra-4.1.4-bin.tar.gz\" class=\"wp-image-13561\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/02\/word-image-13551-10.png 1123w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/02\/word-image-13551-10-300x116.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/02\/word-image-13551-10-1024x395.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/02\/word-image-13551-10-768x296.png 768w\" sizes=\"(max-width: 1123px) 100vw, 1123px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>Note<\/strong>: Replace the asterisks in &#8216;apache-cassandra-..*-bin.tar.gz&#8217; with the exact version numbers of your downloaded tarball.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-13551-_heading=h.35nkun2\"><\/a>Step 3: Open Cassandra Configuration File<\/h3>\n\n\n\n<p>Once the files are extracted, navigate to the resulting directory. Inside, you&#8217;ll find a folder named <strong>&#8216;conf&#8217;<\/strong>. It is located in this folder:<\/p>\n\n\n\n<pre>cd apache-cassandra-4.1.4\/conf<\/pre>\n<pre>sudo nano cassandra.yaml<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1008\" height=\"88\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/02\/word-image-13551-11.png\" alt=\"sudo nano cassandra.yaml\" class=\"wp-image-13562\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/02\/word-image-13551-11.png 1008w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/02\/word-image-13551-11-300x26.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/02\/word-image-13551-11-768x67.png 768w\" sizes=\"(max-width: 1008px) 100vw, 1008px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>To match your specific configuration, you may have to modify this file. Pay close attention to the <strong>&#8216;cluster_name&#8217;<\/strong> and <strong>&#8216;seeds&#8217; <\/strong>values under the &#8216;<strong>seed_provider&#8217; <\/strong>heading:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1120\" height=\"701\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/02\/word-image-13551-12.png\" alt=\"Opening configuration file cassandra.yaml\" class=\"wp-image-13563\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/02\/word-image-13551-12.png 1120w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/02\/word-image-13551-12-300x188.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/02\/word-image-13551-12-1024x641.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/02\/word-image-13551-12-768x481.png 768w\" sizes=\"(max-width: 1120px) 100vw, 1120px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-13551-_heading=h.1ksv4uv\"><\/a>Step 4: Start Cassandra<\/h3>\n\n\n\n<p>To initiate the Cassandra database, execute the &#8216;<strong>bin\/cassandra<\/strong>&#8216; command located within the <strong>&#8216;apache-cassandra-4.1.4<\/strong>&#8216; folder:<\/p>\n\n\n\n<pre>bin\/cassandra<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1139\" height=\"374\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/02\/word-image-13551-13.png\" alt=\"bin\/cassandra\" class=\"wp-image-13564\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/02\/word-image-13551-13.png 1139w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/02\/word-image-13551-13-300x99.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/02\/word-image-13551-13-1024x336.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/02\/word-image-13551-13-768x252.png 768w\" sizes=\"(max-width: 1139px) 100vw, 1139px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-13551-_heading=h.44sinio\"><\/a>Step 5: Check Cassandra Services<\/h3>\n\n\n\n<p>Users can authenticate the Cassandra service with the &#8220;<strong>status<\/strong>&#8221; command:<\/p>\n\n\n\n<pre>bin\/nodetool status<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1127\" height=\"349\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/02\/word-image-13551-14.png\" alt=\"bin\/nodetool status\" class=\"wp-image-13565\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/02\/word-image-13551-14.png 1127w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/02\/word-image-13551-14-300x93.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/02\/word-image-13551-14-1024x317.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/02\/word-image-13551-14-768x238.png 768w\" sizes=\"(max-width: 1127px) 100vw, 1127px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>That is all from the binary tarball method.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"Method-3:-Using-Docker-Image\"><a id=\"post-13551-_heading=h.2jxsxqh\"><\/a>Method 3: Using Docker Image<\/h2>\n\n\n\n<p>To deploy Cassandra on Ubuntu 24.04 using a Docker container, Docker must be installed first. Refer to the Docker installation guide for Linux to set up Docker on your Ubuntu system.<\/p>\n\n\n\n<p>Once Docker is ready, follow the provided steps to install Apache Cassandra as a Docker image:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-13551-_heading=h.z337ya\"><\/a>Step 1: Pull the Cassandra Docker Image<\/h3>\n\n\n\n<p>To begin using Cassandra with Docker, obtain the official Cassandra Docker image from Docker Hub by executing the following command:<\/p>\n\n\n\n<pre>docker pull cassandra:latest<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-13551-_heading=h.3j2qqm3\"><\/a>Step 2: Run a Cassandra Container<\/h3>\n\n\n\n<p>After downloading the Cassandra image, initiate a new, detached Cassandra container by executing the <strong>&#8216;docker run&#8217;<\/strong> command:<\/p>\n\n\n\n<pre>docker run --name cassandra -d cassandra:latest<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-13551-_heading=h.1y810tw\"><\/a>Step 3: Connect to Cassandra<\/h3>\n\n\n\n<p>To interact with the Cassandra instance, open the Cassandra Query Language shell by running the <strong>cqlsh <\/strong>command:<\/p>\n\n\n\n<pre>cqlsh<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1122\" height=\"183\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/02\/word-image-13551-15.png\" alt=\"cqlsh\" class=\"wp-image-13566\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/02\/word-image-13551-15.png 1122w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/02\/word-image-13551-15-300x49.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/02\/word-image-13551-15-1024x167.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/02\/word-image-13551-15-768x125.png 768w\" sizes=\"(max-width: 1122px) 100vw, 1122px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"Configuring-Apache-Cassandra-on-Ubuntu-24.04\"><a id=\"post-13551-_heading=h.4i7ojhp\"><\/a>Configuring Apache Cassandra on Ubuntu 24.04<\/h2>\n\n\n\n<p>Once Cassandra is installed, tailor the <strong>cassandra.yaml <\/strong>file to your cluster&#8217;s needs and start the service. Let&#8217;s configure Cassandra on Ubuntu 24.04:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-13551-_heading=h.2xcytpi\"><\/a>Step 1: Configuring Cassandra<\/h3>\n\n\n\n<p>Cassandra&#8217;s primary configuration file, &#8220;<strong>cassandra.yaml<\/strong>&#8220;, resides in &#8220;<strong>\/etc\/cassandra<\/strong>&#8220;. You might need to modify this file, especially the &#8220;<strong>cluster_name<\/strong>&#8221; and &#8220;<strong>seeds<\/strong>&#8221; settings under &#8220;<strong>seed_provider<\/strong>&#8221; for multi-node setups. The default name of the cluster is &#8220;<strong>Test Cluster<\/strong>&#8220;:<\/p>\n\n\n\n<pre>sudo nano \/etc\/cassandra\/cassandra.yaml<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1120\" height=\"701\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/02\/word-image-13551-16.png\" alt=\"sudo nano \/etc\/cassandra\/cassandra.yaml\" class=\"wp-image-13567\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/02\/word-image-13551-16.png 1120w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/02\/word-image-13551-16-300x188.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/02\/word-image-13551-16-1024x641.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/02\/word-image-13551-16-768x481.png 768w\" sizes=\"(max-width: 1120px) 100vw, 1120px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-13551-_heading=h.1ci93xb\"><\/a>Step 2: Using Cassandra<\/h3>\n\n\n\n<p>To work with your database, start the Cassandra Query Language shell (cqlsh) by typing a command in your terminal:<\/p>\n\n\n\n<pre>cqlsh<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1122\" height=\"183\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/02\/word-image-13551-17.png\" alt=\"cqlsh\" class=\"wp-image-13568\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/02\/word-image-13551-17.png 1122w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/02\/word-image-13551-17-300x49.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/02\/word-image-13551-17-1024x167.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/02\/word-image-13551-17-768x125.png 768w\" sizes=\"(max-width: 1122px) 100vw, 1122px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Finally, users have configured Apache Cassandra on Ubuntu 24.04.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-13551-_heading=h.3whwml4\"><\/a>Explore Different Commands<\/h3>\n\n\n\n<p>For in-depth guidance on setup, troubleshooting, and shell commands, consult the <a href=\"https:\/\/cassandra.apache.org\/doc\/stable\/cassandra\/getting_started\/installing.html\">official Apache documentation<\/a>. Use the <strong>&#8216;HELP&#8217; <\/strong>statement for additional shell command information:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1120\" height=\"782\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/02\/word-image-13551-18.png\" alt=\"Explore different commands\" class=\"wp-image-13569\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/02\/word-image-13551-18.png 1120w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/02\/word-image-13551-18-300x209.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/02\/word-image-13551-18-1024x715.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/02\/word-image-13551-18-768x536.png 768w\" sizes=\"(max-width: 1120px) 100vw, 1120px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>Note<\/strong>: Configure Cassandra as a single-node or multi-node cluster based on your needs. For multi-node setups, ensure firewall rules allow Cassandra traffic.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><a id=\"post-13551-_heading=h.2bn6wsx\"><\/a>Conclusion<\/h2>\n\n\n\n<p>To install Apache Cassandra on Ubuntu 24.04, you&#8217;ll need Java 8 or Java 11. The recommended method is to use the official Apache Software Foundation repositories. This involves adding the Cassandra repository to your system, importing the necessary GPG key, and updating the package lists. Once done, install Cassandra utilizing the <strong>sudo apt install cassandra <\/strong>command. Alternatively, you can install Cassandra using the binary tarball or Docker.<\/p>\n\n\n\t\t\t\t\t\t\t<h3 style=\"margin-bottom:20px;display:block;width:100%;margin-top:10px\">Frequently Asked Questions <\/h3>\r\n\t\t\t\t\t\t<style>\r\n\t\t\t\t<style>\r\n#wpsm_accordion_13572 .wpsm_panel-heading{\r\n\tpadding:0px !important;\r\n}\r\n#wpsm_accordion_13572 .wpsm_panel-title {\r\n\tmargin:0px !important; \r\n\ttext-transform:none !important;\r\n\tline-height: 1 !important;\r\n}\r\n#wpsm_accordion_13572 .wpsm_panel-title a{\r\n\ttext-decoration:none;\r\n\toverflow:hidden;\r\n\tdisplay:block;\r\n\tpadding:0px;\r\n\tfont-size: 18px !important;\r\n\tfont-family: Open Sans !important;\r\n\tcolor:#000000 !important;\r\n\tborder-bottom:0px !important;\r\n}\r\n\r\n#wpsm_accordion_13572 .wpsm_panel-title a:focus {\r\noutline: 0px !important;\r\n}\r\n\r\n#wpsm_accordion_13572 .wpsm_panel-title a:hover, #wpsm_accordion_13572 .wpsm_panel-title a:focus {\r\n\tcolor:#000000 !important;\r\n}\r\n#wpsm_accordion_13572 .acc-a{\r\n\tcolor: #000000 !important;\r\n\tbackground-color:#e8e8e8 !important;\r\n\tborder-color: #ddd;\r\n}\r\n#wpsm_accordion_13572 .wpsm_panel-default > .wpsm_panel-heading{\r\n\tcolor: #000000 !important;\r\n\tbackground-color: #e8e8e8 !important;\r\n\tborder-color: #e8e8e8 !important;\r\n\tborder-top-left-radius: 0px;\r\n\tborder-top-right-radius: 0px;\r\n}\r\n#wpsm_accordion_13572 .wpsm_panel-default {\r\n\t\tborder:1px solid transparent !important;\r\n\t}\r\n#wpsm_accordion_13572 {\r\n\tmargin-bottom: 20px;\r\n\toverflow: hidden;\r\n\tfloat: none;\r\n\twidth: 100%;\r\n\tdisplay: block;\r\n}\r\n#wpsm_accordion_13572 .ac_title_class{\r\n\tdisplay: block;\r\n\tpadding-top: 12px;\r\n\tpadding-bottom: 12px;\r\n\tpadding-left: 15px;\r\n\tpadding-right: 15px;\r\n}\r\n#wpsm_accordion_13572  .wpsm_panel {\r\n\toverflow:hidden;\r\n\t-webkit-box-shadow: 0 0px 0px rgba(0, 0, 0, .05);\r\n\tbox-shadow: 0 0px 0px rgba(0, 0, 0, .05);\r\n\t\tborder-radius: 4px;\r\n\t}\r\n#wpsm_accordion_13572  .wpsm_panel + .wpsm_panel {\r\n\t\tmargin-top: 5px;\r\n\t}\r\n#wpsm_accordion_13572  .wpsm_panel-body{\r\n\tbackground-color:#ffffff !important;\r\n\tcolor:#000000 !important;\r\n\tborder-top-color: #e8e8e8 !important;\r\n\tfont-size:16px !important;\r\n\tfont-family: Open Sans !important;\r\n\toverflow: hidden;\r\n\t\tborder: 2px solid #e8e8e8 !important;\r\n\t}\r\n\r\n#wpsm_accordion_13572 .ac_open_cl_icon{\r\n\tbackground-color:#e8e8e8 !important;\r\n\tcolor: #000000 !important;\r\n\tfloat:right !important;\r\n\tpadding-top: 12px !important;\r\n\tpadding-bottom: 12px !important;\r\n\tline-height: 1.0 !important;\r\n\tpadding-left: 15px !important;\r\n\tpadding-right: 15px !important;\r\n\tdisplay: inline-block !important;\r\n}\r\n\r\n\t\t\t\r\n\t\t\t<\/style>\t\r\n\t\t\t<\/style>\r\n\t\t\t<div class=\"wpsm_panel-group\" id=\"wpsm_accordion_13572\" >\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t<!-- Inner panel Start -->\r\n\t\t\t\t\t<div class=\"wpsm_panel wpsm_panel-default\">\r\n\t\t\t\t\t\t<div class=\"wpsm_panel-heading\" role=\"tab\" >\r\n\t\t\t\t\t\t  <h4 class=\"wpsm_panel-title\">\r\n\t\t\t\t\t\t\t<a  class=\"\"  data-toggle=\"collapse\" data-parent=\"#wpsm_accordion_13572 \" href=\"javascript:void(0)\" data-target=\"#ac_13572_collapse1\" onclick=\"do_resize()\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"ac_open_cl_icon fa fa-plus\"><\/span>\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t\t<span class=\"ac_title_class\">\r\n\t\t\t\t\t\t\t\t\tWhat are the system requirements for Apache Cassandra?\t\t\t\t\t\t\t\t<\/span>\r\n\t\t\t\t\t\t\t<\/a>\r\n\t\t\t\t\t\t  <\/h4>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t\t<div id=\"ac_13572_collapse1\" class=\"wpsm_panel-collapse collapse \"  >\r\n\t\t\t\t\t\t  <div class=\"wpsm_panel-body\">\r\n\t\t\t\t\t\t\tApache Cassandra requires at least 2GB of RAM, 10GB of disk space, and a 64-bit version of Ubuntu 24.04.\t\t\t\t\t\t  <\/div>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<!-- Inner panel End -->\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t<!-- Inner panel Start -->\r\n\t\t\t\t\t<div class=\"wpsm_panel wpsm_panel-default\">\r\n\t\t\t\t\t\t<div class=\"wpsm_panel-heading\" role=\"tab\" >\r\n\t\t\t\t\t\t  <h4 class=\"wpsm_panel-title\">\r\n\t\t\t\t\t\t\t<a  class=\"collapsed\"  data-toggle=\"collapse\" data-parent=\"#wpsm_accordion_13572 \" href=\"javascript:void(0)\" data-target=\"#ac_13572_collapse2\" onclick=\"do_resize()\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"ac_open_cl_icon fa fa-plus\"><\/span>\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t\t<span class=\"ac_title_class\">\r\n\t\t\t\t\t\t\t\t\tHow do I install Apache Cassandra on Ubuntu 24.04?\t\t\t\t\t\t\t\t<\/span>\r\n\t\t\t\t\t\t\t<\/a>\r\n\t\t\t\t\t\t  <\/h4>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t\t<div id=\"ac_13572_collapse2\" class=\"wpsm_panel-collapse collapse \"  >\r\n\t\t\t\t\t\t  <div class=\"wpsm_panel-body\">\r\n\t\t\t\t\t\t\tInstall Apache Cassandra using the package manager. First, add the Cassandra repository, update your system, and then run <code>sudo apt install cassandra<\/code> to install it.\t\t\t\t\t\t  <\/div>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<!-- Inner panel End -->\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t<!-- Inner panel Start -->\r\n\t\t\t\t\t<div class=\"wpsm_panel wpsm_panel-default\">\r\n\t\t\t\t\t\t<div class=\"wpsm_panel-heading\" role=\"tab\" >\r\n\t\t\t\t\t\t  <h4 class=\"wpsm_panel-title\">\r\n\t\t\t\t\t\t\t<a  class=\"collapsed\"  data-toggle=\"collapse\" data-parent=\"#wpsm_accordion_13572 \" href=\"javascript:void(0)\" data-target=\"#ac_13572_collapse3\" onclick=\"do_resize()\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"ac_open_cl_icon fa fa-plus\"><\/span>\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t\t<span class=\"ac_title_class\">\r\n\t\t\t\t\t\t\t\t\tDo I need to install Java separately?\t\t\t\t\t\t\t\t<\/span>\r\n\t\t\t\t\t\t\t<\/a>\r\n\t\t\t\t\t\t  <\/h4>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t\t<div id=\"ac_13572_collapse3\" class=\"wpsm_panel-collapse collapse \"  >\r\n\t\t\t\t\t\t  <div class=\"wpsm_panel-body\">\r\n\t\t\t\t\t\t\tYes, Cassandra requires Java to run. You can install OpenJDK by running <code>sudo apt install openjdk-11-jdk<\/code> before installing Cassandra.\t\t\t\t\t\t  <\/div>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<!-- Inner panel End -->\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t<!-- Inner panel Start -->\r\n\t\t\t\t\t<div class=\"wpsm_panel wpsm_panel-default\">\r\n\t\t\t\t\t\t<div class=\"wpsm_panel-heading\" role=\"tab\" >\r\n\t\t\t\t\t\t  <h4 class=\"wpsm_panel-title\">\r\n\t\t\t\t\t\t\t<a  class=\"collapsed\"  data-toggle=\"collapse\" data-parent=\"#wpsm_accordion_13572 \" href=\"javascript:void(0)\" data-target=\"#ac_13572_collapse4\" onclick=\"do_resize()\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"ac_open_cl_icon fa fa-plus\"><\/span>\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t\t<span class=\"ac_title_class\">\r\n\t\t\t\t\t\t\t\t\tHow can I verify the Cassandra installation?\t\t\t\t\t\t\t\t<\/span>\r\n\t\t\t\t\t\t\t<\/a>\r\n\t\t\t\t\t\t  <\/h4>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t\t<div id=\"ac_13572_collapse4\" class=\"wpsm_panel-collapse collapse \"  >\r\n\t\t\t\t\t\t  <div class=\"wpsm_panel-body\">\r\n\t\t\t\t\t\t\tAfter installation, run <code>nodetool status<\/code> to check the status of the Cassandra node. If it's installed correctly, the command should return information about the node.\t\t\t\t\t\t  <\/div>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<!-- Inner panel End -->\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t<!-- Inner panel Start -->\r\n\t\t\t\t\t<div class=\"wpsm_panel wpsm_panel-default\">\r\n\t\t\t\t\t\t<div class=\"wpsm_panel-heading\" role=\"tab\" >\r\n\t\t\t\t\t\t  <h4 class=\"wpsm_panel-title\">\r\n\t\t\t\t\t\t\t<a  class=\"collapsed\"  data-toggle=\"collapse\" data-parent=\"#wpsm_accordion_13572 \" href=\"javascript:void(0)\" data-target=\"#ac_13572_collapse5\" onclick=\"do_resize()\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"ac_open_cl_icon fa fa-plus\"><\/span>\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t\t<span class=\"ac_title_class\">\r\n\t\t\t\t\t\t\t\t\tHow do I start the Cassandra service?\t\t\t\t\t\t\t\t<\/span>\r\n\t\t\t\t\t\t\t<\/a>\r\n\t\t\t\t\t\t  <\/h4>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t\t<div id=\"ac_13572_collapse5\" class=\"wpsm_panel-collapse collapse \"  >\r\n\t\t\t\t\t\t  <div class=\"wpsm_panel-body\">\r\n\t\t\t\t\t\t\tTo start Cassandra, use <code>sudo systemctl start cassandra<\/code>. You can also enable it to start on boot with <code>sudo systemctl enable cassandra<\/code>.\t\t\t\t\t\t  <\/div>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<!-- Inner panel End -->\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\t<\/div>\r\n\t\t\t\r\n<script type=\"text\/javascript\">\r\n\t\r\n\t\tfunction do_resize(){\r\n\r\n\t\t\tvar width=jQuery( '.wpsm_panel .wpsm_panel-body iframe' ).width();\r\n\t\t\tvar height=jQuery( '.wpsm_panel .wpsm_panel-body iframe' ).height();\r\n\r\n\t\t\tvar toggleSize = true;\r\n\t\t\tjQuery('iframe').animate({\r\n\t\t\t    width: toggleSize ? width : 640,\r\n\t\t\t    height: toggleSize ? height : 360\r\n\t\t\t  }, 250);\r\n\r\n\t\t\t  toggleSize = !toggleSize;\r\n\t\t}\r\n\t\t\r\n<\/script>\t\n\n\n\n<p><\/p>\n\n    <div class=\"xs_social_share_widget xs_share_url after_content \t\tmain_content  wslu-style-1 wslu-share-box-shaped wslu-fill-colored wslu-none wslu-share-horizontal wslu-theme-font-no wslu-main_content\">\n\n\t\t\n        <ul>\n\t\t\t        <\/ul>\n    <\/div> \n","protected":false},"excerpt":{"rendered":"<p>Apache Cassandra is a robust, distributed database system capable of storing and processing immense volumes of data across multiple commodity hardware servers. Its fault-tolerant architecture ensures uninterrupted availability and protects against data loss. For managing large-scale data in a distributed environment, Ubuntu servers paired with Apache Cassandra offer a powerful solution. Cassandra&#8217;s masterless design enables [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":13576,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[43],"tags":[674,675,317],"class_list":["post-13551","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","tag-apache-cassandra","tag-database","tag-ubuntu-24-04"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Install Apache Cassandra on Ubuntu 24.04: Top 3 Ways<\/title>\n<meta name=\"description\" content=\"This article will guide you through installing Apache Cassandra on Ubuntu 24.04. Learn more in this detailed guide.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/greenwebpage.com\/community\/how-to-install-apache-cassandra-on-ubuntu-24-04\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Install Apache Cassandra on Ubuntu 24.04: Top 3 Ways\" \/>\n<meta property=\"og:description\" content=\"This article will guide you through installing Apache Cassandra on Ubuntu 24.04. Learn more in this detailed guide.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/greenwebpage.com\/community\/how-to-install-apache-cassandra-on-ubuntu-24-04\/\" \/>\n<meta property=\"og:site_name\" content=\"Greenwebpage Community\" \/>\n<meta property=\"article:published_time\" content=\"2025-02-13T06:56:50+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-02-13T06:56:53+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/02\/Install-Apache-Cassandra-on-Ubuntu-24.04.jpeg\" \/>\n\t<meta property=\"og:image:width\" content=\"1020\" \/>\n\t<meta property=\"og:image:height\" content=\"600\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Karim Buzdar\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Karim Buzdar\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"8 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-install-apache-cassandra-on-ubuntu-24-04\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-install-apache-cassandra-on-ubuntu-24-04\/\"},\"author\":{\"name\":\"Karim Buzdar\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/467c100c1d017bc081473ee0440680c8\"},\"headline\":\"How to Install Apache Cassandra on Ubuntu 24.04: Top 3 Ways\",\"datePublished\":\"2025-02-13T06:56:50+00:00\",\"dateModified\":\"2025-02-13T06:56:53+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-install-apache-cassandra-on-ubuntu-24-04\/\"},\"wordCount\":937,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/#organization\"},\"image\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-install-apache-cassandra-on-ubuntu-24-04\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/02\/Install-Apache-Cassandra-on-Ubuntu-24.04.jpeg\",\"keywords\":[\"Apache Cassandra\",\"Database\",\"Ubuntu 24.04\"],\"articleSection\":[\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/greenwebpage.com\/community\/how-to-install-apache-cassandra-on-ubuntu-24-04\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-install-apache-cassandra-on-ubuntu-24-04\/\",\"url\":\"https:\/\/greenwebpage.com\/community\/how-to-install-apache-cassandra-on-ubuntu-24-04\/\",\"name\":\"How to Install Apache Cassandra on Ubuntu 24.04: Top 3 Ways\",\"isPartOf\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-install-apache-cassandra-on-ubuntu-24-04\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-install-apache-cassandra-on-ubuntu-24-04\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/02\/Install-Apache-Cassandra-on-Ubuntu-24.04.jpeg\",\"datePublished\":\"2025-02-13T06:56:50+00:00\",\"dateModified\":\"2025-02-13T06:56:53+00:00\",\"description\":\"This article will guide you through installing Apache Cassandra on Ubuntu 24.04. Learn more in this detailed guide.\",\"breadcrumb\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-install-apache-cassandra-on-ubuntu-24-04\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/greenwebpage.com\/community\/how-to-install-apache-cassandra-on-ubuntu-24-04\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-install-apache-cassandra-on-ubuntu-24-04\/#primaryimage\",\"url\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/02\/Install-Apache-Cassandra-on-Ubuntu-24.04.jpeg\",\"contentUrl\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/02\/Install-Apache-Cassandra-on-Ubuntu-24.04.jpeg\",\"width\":1020,\"height\":600,\"caption\":\"Install Apache Cassandra on Ubuntu 24.04\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-install-apache-cassandra-on-ubuntu-24-04\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/greenwebpage.com\/community\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install Apache Cassandra on Ubuntu 24.04: Top 3 Ways\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#website\",\"url\":\"https:\/\/greenwebpage.com\/community\/\",\"name\":\"Greenwebpage Community\",\"description\":\"Get online in three steps with our wide range of web hosting solutions. Choose from professional business to enterprise options designed to meet your needs.\",\"publisher\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/greenwebpage.com\/community\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#organization\",\"name\":\"Greenwebpage Community\",\"url\":\"https:\/\/greenwebpage.com\/community\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/10\/cropped-logomic.png\",\"contentUrl\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/10\/cropped-logomic.png\",\"width\":512,\"height\":512,\"caption\":\"Greenwebpage Community\"},\"image\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/467c100c1d017bc081473ee0440680c8\",\"name\":\"Karim Buzdar\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/0628fcbcddd9bc5486245d2cf4a904dbcdeac9ad6c3098f49237094e9d513d0c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/0628fcbcddd9bc5486245d2cf4a904dbcdeac9ad6c3098f49237094e9d513d0c?s=96&d=mm&r=g\",\"caption\":\"Karim Buzdar\"},\"sameAs\":[\"https:\/\/greenwebpage.com\"],\"url\":\"https:\/\/greenwebpage.com\/community\/author\/karim\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Install Apache Cassandra on Ubuntu 24.04: Top 3 Ways","description":"This article will guide you through installing Apache Cassandra on Ubuntu 24.04. Learn more in this detailed guide.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/greenwebpage.com\/community\/how-to-install-apache-cassandra-on-ubuntu-24-04\/","og_locale":"en_US","og_type":"article","og_title":"How to Install Apache Cassandra on Ubuntu 24.04: Top 3 Ways","og_description":"This article will guide you through installing Apache Cassandra on Ubuntu 24.04. Learn more in this detailed guide.","og_url":"https:\/\/greenwebpage.com\/community\/how-to-install-apache-cassandra-on-ubuntu-24-04\/","og_site_name":"Greenwebpage Community","article_published_time":"2025-02-13T06:56:50+00:00","article_modified_time":"2025-02-13T06:56:53+00:00","og_image":[{"width":1020,"height":600,"url":"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/02\/Install-Apache-Cassandra-on-Ubuntu-24.04.jpeg","type":"image\/jpeg"}],"author":"Karim Buzdar","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Karim Buzdar","Est. reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/greenwebpage.com\/community\/how-to-install-apache-cassandra-on-ubuntu-24-04\/#article","isPartOf":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-install-apache-cassandra-on-ubuntu-24-04\/"},"author":{"name":"Karim Buzdar","@id":"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/467c100c1d017bc081473ee0440680c8"},"headline":"How to Install Apache Cassandra on Ubuntu 24.04: Top 3 Ways","datePublished":"2025-02-13T06:56:50+00:00","dateModified":"2025-02-13T06:56:53+00:00","mainEntityOfPage":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-install-apache-cassandra-on-ubuntu-24-04\/"},"wordCount":937,"commentCount":0,"publisher":{"@id":"https:\/\/greenwebpage.com\/community\/#organization"},"image":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-install-apache-cassandra-on-ubuntu-24-04\/#primaryimage"},"thumbnailUrl":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/02\/Install-Apache-Cassandra-on-Ubuntu-24.04.jpeg","keywords":["Apache Cassandra","Database","Ubuntu 24.04"],"articleSection":["Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/greenwebpage.com\/community\/how-to-install-apache-cassandra-on-ubuntu-24-04\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/greenwebpage.com\/community\/how-to-install-apache-cassandra-on-ubuntu-24-04\/","url":"https:\/\/greenwebpage.com\/community\/how-to-install-apache-cassandra-on-ubuntu-24-04\/","name":"How to Install Apache Cassandra on Ubuntu 24.04: Top 3 Ways","isPartOf":{"@id":"https:\/\/greenwebpage.com\/community\/#website"},"primaryImageOfPage":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-install-apache-cassandra-on-ubuntu-24-04\/#primaryimage"},"image":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-install-apache-cassandra-on-ubuntu-24-04\/#primaryimage"},"thumbnailUrl":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/02\/Install-Apache-Cassandra-on-Ubuntu-24.04.jpeg","datePublished":"2025-02-13T06:56:50+00:00","dateModified":"2025-02-13T06:56:53+00:00","description":"This article will guide you through installing Apache Cassandra on Ubuntu 24.04. Learn more in this detailed guide.","breadcrumb":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-install-apache-cassandra-on-ubuntu-24-04\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/greenwebpage.com\/community\/how-to-install-apache-cassandra-on-ubuntu-24-04\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/greenwebpage.com\/community\/how-to-install-apache-cassandra-on-ubuntu-24-04\/#primaryimage","url":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/02\/Install-Apache-Cassandra-on-Ubuntu-24.04.jpeg","contentUrl":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/02\/Install-Apache-Cassandra-on-Ubuntu-24.04.jpeg","width":1020,"height":600,"caption":"Install Apache Cassandra on Ubuntu 24.04"},{"@type":"BreadcrumbList","@id":"https:\/\/greenwebpage.com\/community\/how-to-install-apache-cassandra-on-ubuntu-24-04\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/greenwebpage.com\/community\/"},{"@type":"ListItem","position":2,"name":"How to Install Apache Cassandra on Ubuntu 24.04: Top 3 Ways"}]},{"@type":"WebSite","@id":"https:\/\/greenwebpage.com\/community\/#website","url":"https:\/\/greenwebpage.com\/community\/","name":"Greenwebpage Community","description":"Get online in three steps with our wide range of web hosting solutions. Choose from professional business to enterprise options designed to meet your needs.","publisher":{"@id":"https:\/\/greenwebpage.com\/community\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/greenwebpage.com\/community\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/greenwebpage.com\/community\/#organization","name":"Greenwebpage Community","url":"https:\/\/greenwebpage.com\/community\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/greenwebpage.com\/community\/#\/schema\/logo\/image\/","url":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/10\/cropped-logomic.png","contentUrl":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/10\/cropped-logomic.png","width":512,"height":512,"caption":"Greenwebpage Community"},"image":{"@id":"https:\/\/greenwebpage.com\/community\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/467c100c1d017bc081473ee0440680c8","name":"Karim Buzdar","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/0628fcbcddd9bc5486245d2cf4a904dbcdeac9ad6c3098f49237094e9d513d0c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0628fcbcddd9bc5486245d2cf4a904dbcdeac9ad6c3098f49237094e9d513d0c?s=96&d=mm&r=g","caption":"Karim Buzdar"},"sameAs":["https:\/\/greenwebpage.com"],"url":"https:\/\/greenwebpage.com\/community\/author\/karim\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/posts\/13551","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/comments?post=13551"}],"version-history":[{"count":5,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/posts\/13551\/revisions"}],"predecessor-version":[{"id":13575,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/posts\/13551\/revisions\/13575"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/media\/13576"}],"wp:attachment":[{"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/media?parent=13551"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/categories?post=13551"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/tags?post=13551"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}