{"id":30733,"date":"2019-08-26T15:24:13","date_gmt":"2019-08-26T20:24:13","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=30733"},"modified":"2022-12-08T08:28:55","modified_gmt":"2022-12-08T14:28:55","slug":"how-to-install-apache-cassandra-on-centos-7","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-install-apache-cassandra-on-centos-7\/","title":{"rendered":"How to Install Apache Cassandra on CentOS 7"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div>\r\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"742\" height=\"372\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/08\/how-to-install-apache-cassandra-on-centos7.jpg\" alt=\"\" class=\"wp-image-31889\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/08\/how-to-install-apache-cassandra-on-centos7.jpg 742w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/08\/how-to-install-apache-cassandra-on-centos7-150x75.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/08\/how-to-install-apache-cassandra-on-centos7-300x150.jpg 300w\" sizes=\"(max-width: 742px) 100vw, 742px\" \/><\/figure>\r\n\r\n\r\n\r\n<p>In this tutorial, we will show you how to install and set up Apache Cassandra on a <a href=\"https:\/\/www.rosehosting.com\/centos-hosting.html\">CentOS 7 VPS<\/a>.<\/p>\r\n\r\n\r\n\r\n<div class=\"wp-block-image\"><figure class=\"alignright\"><img decoding=\"async\" width=\"150\" height=\"79\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/08\/set-up-apache-cassandra-easily-on-debian9-vps.jpg\" alt=\"\" class=\"wp-image-31890\"\/><\/figure><\/div>\r\n\r\n\r\n\r\n<p>Apache Cassandra is a free and open-source, high performance, highly scalable distributed NoSQL database management system designed to handle a high volume of structured data across many commodity servers, providing high availability with no single point of failure. Cassandra is an excellent choice when downtime or data loss is unacceptable, where redundancy is key. Let&#8217;s begin with the installation.<\/p>\r\n\r\n\r\n\r\n<!--more-->\r\n\r\n\r\n\r\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-transparent ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69fc4450e9fc9\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"ez-toc-cssicon\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69fc4450e9fc9\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-apache-cassandra-on-centos-7\/#Prerequisites\" >Prerequisites<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-apache-cassandra-on-centos-7\/#Step-1-Log-in-via-SSH-and-Update\" >Step 1: Log in via SSH and Update<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-apache-cassandra-on-centos-7\/#Step-2-Install-Java\" >Step 2: Install Java<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-apache-cassandra-on-centos-7\/#Step-3-Install-Cassandra\" >Step 3: Install Cassandra<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-apache-cassandra-on-centos-7\/#Step-4-Configure-Apache-Cassandra\" >Step 4: Configure Apache Cassandra<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\" id=\"h-prerequisites\"><span class=\"ez-toc-section\" id=\"Prerequisites\"><\/span>Prerequisites<span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\"><li>A Server running CentOS 7. For the purposes of this tutorial, we\u2019ll be using one of our <a href=\"https:\/\/www.rosehosting.com\/centos-hosting.html\">Managed CentOS 7 VPS<\/a>es with 4GB of memory.<\/li><li>SSH access with root privileges, or access to the \u201croot\u201d user itself.<\/li><\/ul>\r\n\r\n\r\n\r\n<p>For more information about the hardware requirements of Cassandra, please refer to their official website.<\/p>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\" id=\"h-step-1-log-in-via-ssh-and-update\"><span class=\"ez-toc-section\" id=\"Step-1-Log-in-via-SSH-and-Update\"><\/span>Step 1: Log in via SSH and Update<span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n\r\n\r\n\r\n<p>Log in to your CentOS 7 VPS with SSH as the root user:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">ssh root@<span style=\"color: #ff0000;\">IP_Address<\/span> -p <span style=\"color: #ff0000;\">Port_number<\/span><\/pre>\r\n\r\n\r\n\r\n<p>Replace \u201croot\u201d with a user that has sudo privileges if necessary. Additionally, replace \u201c<span style=\"color: #ff0000;\">IP_Address<\/span>\u201d and \u201c<span style=\"color: #ff0000;\">Port_Number<\/span>\u201d with your server\u2019s respective IP address and SSH port.<\/p>\r\n\r\n\r\n\r\n<p>Once that is done, you can check whether you have the proper CentOS 7 version installed on your server with the following command:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\"># cat \/etc\/redhat-release<\/pre>\r\n\r\n\r\n\r\n<p>You should get this output:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">CentOS Linux release 7.6.1810 (Core)<\/pre>\r\n\r\n\r\n\r\n<p>Then, run the following command to make sure that all installed packages on the server are updated to their latest available versions:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\"># yum update<\/pre>\r\n\r\n\r\n\r\n<p>This ensures compatibility between packages.<\/p>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\" id=\"h-step-2-install-java\"><span class=\"ez-toc-section\" id=\"Step-2-Install-Java\"><\/span>Step 2: Install Java<span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n\r\n\r\n\r\n<p>Apache Cassandra requires Java, so we&#8217;ll need to install Java first.<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\"># yum install java nano -y<\/pre>\r\n\r\n\r\n\r\n<p>Now, let&#8217;s check and confirm the Java installation result.<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">[root@centos2019 ~]# java -version\r\nopenjdk version \"1.8.0_212\"\r\nOpenJDK Runtime Environment (build 1.8.0_212-b04)\r\nOpenJDK 64-Bit Server VM (build 25.212-b04, mixed mode)<\/pre>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\" id=\"h-step-3-install-cassandra\"><span class=\"ez-toc-section\" id=\"Step-3-Install-Cassandra\"><\/span>Step 3: Install Cassandra<span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n\r\n\r\n\r\n<p>The easiest way to install Apache Cassandra is from their official repository. Add the Apache repository of Cassandra to <code>\/etc\/yum.repos.d\/<\/code>, for the latest 3.11 version. We&#8217;ll do this by opening a new file using nano (you can use a different text editor if you like):<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\"># nano \/etc\/yum.repos.d\/cassandra.repo<\/pre>\r\n\r\n\r\n\r\n<p>Then, add the following lines to the file:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">[cassandra]\r\nname=Apache Cassandra\r\nbaseurl=https:\/\/www.apache.org\/dist\/cassandra\/redhat\/311x\/\r\ngpgcheck=1\r\nrepo_gpgcheck=1\r\ngpgkey=https:\/\/www.apache.org\/dist\/cassandra\/KEYS<\/pre>\r\n\r\n\r\n\r\n<p>Don&#8217;t forget to save and exit the file to proceed with the installation.<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\"># yum install cassandra<\/pre>\r\n\r\n\r\n\r\n<p>Accept all GPG key import when prompted.<\/p>\r\n\r\n\r\n\r\n<p>The new packages have been automatically added, so let\u2019s enable Apache Cassandra to automatically run on boot, and then run the service.<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\"># systemctl enable cassandra\r\n# systemctl start cassandra<\/pre>\r\n\r\n\r\n\r\n<p>Check the status of the Cassandra cluster. We will use the <code>nodetool<\/code> program to show the status of Apache Cassandra:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">[root@centos2019 ~]# nodetool status\r\nDatacenter: datacenter1\r\n=======================\r\nStatus=Up\/Down\r\n|\/ State=Normal\/Leaving\/Joining\/Moving\r\n-- Address Load Tokens Owns (effective) Host ID Rack\r\nUN 127.0.0.1 103.65 KiB 256 100.0% 9f1f53c1-559a-469d-a0b4-284e46587820 rack1<\/pre>\r\n\r\n\r\n\r\n<p>If you see <strong>UN<\/strong> in the output, then the cluster is working properly.<\/p>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\" id=\"h-step-4-configure-apache-cassandra\"><span class=\"ez-toc-section\" id=\"Step-4-Configure-Apache-Cassandra\"><\/span>Step 4: Configure Apache Cassandra<span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n\r\n\r\n\r\n<h3 class=\"wp-block-heading\" id=\"h-secure-cassandra\">Secure Cassandra<\/h3>\r\n\r\n\r\n\r\n<p>By default, you can log in to the&nbsp;<em>cqlsh<\/em> shell without a password, and for security purposes, we will change the configuration so that it requires a password.<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\"># nano \/etc\/cassandra\/conf\/cassandra.yaml<\/pre>\r\n\r\n\r\n\r\n<p>Find and replace the authenticator value from &#8220;AllowAllAuthenticator&#8221; to &#8220;PasswordAuthenticator&#8221;<\/p>\r\n\r\n\r\n\r\n<p>Don&#8217;t forget to restart Cassandra after saving and exiting the file.<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\"># systemctl restart cassandra<\/pre>\r\n\r\n\r\n\r\n<p>Then, log in with the following command. You will then be able to add a new user:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\"># cqlsh -u cassandra -p cassandra<\/pre>\r\n\r\n\r\n\r\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" width=\"627\" height=\"99\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/05\/cassandra_login.png\" alt=\"\" class=\"wp-image-30735\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/05\/cassandra_login.png 627w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/05\/cassandra_login-150x24.png 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/05\/cassandra_login-300x47.png 300w\" sizes=\"(max-width: 627px) 100vw, 627px\" \/><\/figure><\/div>\r\n\r\n\r\n\r\n<p>Now, let&#8217;s create a super administrator user, let&#8217;s run this command in cassandra shell<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">cassandra@cqlsh&gt; CREATE ROLE master WITH PASSWORD = '<span style=\"color: #ff0000;\">m0d1fyth15<\/span>' AND SUPERUSER = true AND LOGIN = true;<\/pre>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">cassandra@cqlsh&gt; quit<\/pre>\r\n\r\n\r\n\r\n<p>With the command above, you created a super user named &#8216;master&#8217; with &#8216;<span style=\"color: #ff0000;\">m0d1fyth15<\/span>&#8216; as its password. Please replace the password to a stronger, more secure password when running the command.<\/p>\r\n\r\n\r\n\r\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" width=\"874\" height=\"235\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/05\/cassandra_superuser.png\" alt=\"\" class=\"wp-image-30736\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/05\/cassandra_superuser.png 874w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/05\/cassandra_superuser-150x40.png 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/05\/cassandra_superuser-300x81.png 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/05\/cassandra_superuser-768x206.png 768w\" sizes=\"(max-width: 874px) 100vw, 874px\" \/><\/figure><\/div>\r\n\r\n\r\n\r\n<p><br>Once a new super user is created, you can delete Cassandra&#8217;s default user by logging in to cqlsh using the newly created super user account. Once logged in, enter these commands:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">master@cqlsh&gt; ALTER ROLE cassandra WITH PASSWORD = 'cassandra' AND SUPERUSER = false AND LOGIN = false;\r\nmaster@cqlsh&gt; REVOKE ALL PERMISSIONS ON ALL KEYSPACES FROM cassandra;<\/pre>\r\n\r\n\r\n\r\n<h3 class=\"wp-block-heading\" id=\"h-rename-the-cluster\">Rename the Cluster<\/h3>\r\n\r\n\r\n\r\n<p>By default, Cassandra has &#8220;Test Cluster&#8221; as the cluster name. You can change the cluster name by doing the followings:<\/p>\r\n\r\n\r\n\r\n<p>1. Run this command in your cqlsh shell:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">UPDATE system.local SET cluster_name = '[Your_desired_cluster_name]' WHERE KEY = 'local';<\/pre>\r\n\r\n\r\n\r\n<p>2. Edit the <code>\/etc\/cassandra\/conf\/cassandra.yaml<\/code> file and replace the value in the &#8216;cluster_name&#8217; with the one you like to set.<\/p>\r\n\r\n\r\n\r\n<p>3. Invoke the command&nbsp;<em><code>nodetool flush system<\/code><\/em> from your CentOS shell, <strong>not the&nbsp;<em>cqlsh <\/em>shell<\/strong>.<\/p>\r\n\r\n\r\n\r\n<p>4. Restart Cassandra with the command<em>&nbsp;<code>systemctl restart cassandra<\/code>.<\/em><\/p>\r\n\r\n\r\n\r\n<p>5. Log in to the cqlsh shell with the super user account to check and verify the cluster name changes.<\/p>\r\n\r\n\r\n\r\n<p>That&#8217;s it. You have successfully installed and configured Apache Cassandra on a CentOS 7 machine. For more information about Apache Cassandra, you can follow their documentation at http:\/\/cassandra.apache.org\/doc\/latest\/.<\/p>\r\n\r\n\r\n\r\n<p>Follow this guide for <a href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-apache-cassandra-on-ubuntu-20-04\/\">installing Apache Cassandra on Ubuntu 20.04<\/a><\/p>\r\n\r\n\r\n\r\n<hr class=\"wp-block-separator\"\/>\r\n\r\n\r\n\r\n<div class=\"wp-block-image\"><figure class=\"alignleft\"><img decoding=\"async\" width=\"150\" height=\"79\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/08\/managed-help-support-for-apache-cassandra-on-debian9-vps.jpg\" alt=\"\" class=\"wp-image-31892\"\/><\/figure><\/div>\r\n\r\n\r\n\r\n<p>Of course, you don\u2019t have to know how to install Apache Cassandra on CentOS 7 if you have a <a href=\"https:\/\/www.rosehosting.com\/centos-hosting.html\">CentOS 7 VPS<\/a> hosted with us. If you do, you can simply ask our support team to install Apache Cassandra on CentOS 7 for you. They are available 24\/7 and will be able to help you with the installation of Apache Cassandra, as well as any additional requirements that you may have. You might also want to consider our new guide: <a href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-apache-cassandra-on-centos-8\/\">How to Install Apache Cassandra on CentOS 8<\/a>.<\/p>\r\n\r\n\r\n\r\n<p><strong><span style=\"color: #ff0000;\">PS.<\/span><\/strong> If you enjoy reading this blog post on how to install Apache Cassandra on CentOS 7, feel free to share it on social networks by using the shortcuts below or simply leave a comment down in the comments section. Thank you.<\/p>\r\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, we will show you how to install and set up Apache Cassandra on a CentOS 7 VPS. &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"How to Install Apache Cassandra on CentOS 7\" class=\"read-more button\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-apache-cassandra-on-centos-7\/#more-30733\" aria-label=\"Read more about How to Install Apache Cassandra on CentOS 7\">Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":31889,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1699,1702,13],"tags":[758,541],"class_list":["post-30733","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-centos","category-databases","category-tutorials","tag-apache-cassandra","tag-centos-7","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-33"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.5 (Yoast SEO v27.5) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Install Apache Cassandra on CentOS 7 | RoseHosting<\/title>\n<meta name=\"description\" content=\"How to Install Apache Cassandra on CentOS 7 | RoseHosting\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-apache-cassandra-on-centos-7\/\" \/>\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 CentOS 7\" \/>\n<meta property=\"og:description\" content=\"How to Install Apache Cassandra on CentOS 7 | RoseHosting\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-apache-cassandra-on-centos-7\/\" \/>\n<meta property=\"og:site_name\" content=\"RoseHosting\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/RoseHosting\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/rosehosting.helpdesk\" \/>\n<meta property=\"article:published_time\" content=\"2019-08-26T20:24:13+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-12-08T14:28:55+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/08\/how-to-install-apache-cassandra-on-centos7.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"742\" \/>\n\t<meta property=\"og:image:height\" content=\"372\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Jeff Wilson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:site\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jeff Wilson\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-apache-cassandra-on-centos-7\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-apache-cassandra-on-centos-7\\\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"How to Install Apache Cassandra on CentOS 7\",\"datePublished\":\"2019-08-26T20:24:13+00:00\",\"dateModified\":\"2022-12-08T14:28:55+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-apache-cassandra-on-centos-7\\\/\"},\"wordCount\":802,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-apache-cassandra-on-centos-7\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/08\\\/how-to-install-apache-cassandra-on-centos7.jpg\",\"keywords\":[\"apache cassandra\",\"centos 7\"],\"articleSection\":[\"CentOS\",\"Databases\",\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-apache-cassandra-on-centos-7\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-apache-cassandra-on-centos-7\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-apache-cassandra-on-centos-7\\\/\",\"name\":\"How to Install Apache Cassandra on CentOS 7 | RoseHosting\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-apache-cassandra-on-centos-7\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-apache-cassandra-on-centos-7\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/08\\\/how-to-install-apache-cassandra-on-centos7.jpg\",\"datePublished\":\"2019-08-26T20:24:13+00:00\",\"dateModified\":\"2022-12-08T14:28:55+00:00\",\"description\":\"How to Install Apache Cassandra on CentOS 7 | RoseHosting\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-apache-cassandra-on-centos-7\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-apache-cassandra-on-centos-7\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-apache-cassandra-on-centos-7\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/08\\\/how-to-install-apache-cassandra-on-centos7.jpg\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/08\\\/how-to-install-apache-cassandra-on-centos7.jpg\",\"width\":742,\"height\":372},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-apache-cassandra-on-centos-7\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install Apache Cassandra on CentOS 7\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"name\":\"RoseHosting.com\",\"description\":\"Premium Linux Tutorials Since 2001\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\",\"name\":\"RoseHosting\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"width\":192,\"height\":192,\"caption\":\"RoseHosting\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/RoseHosting\",\"https:\\\/\\\/x.com\\\/rosehosting\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/rosehosting\\\/\"],\"description\":\"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.\",\"email\":\"info@rosehosting.com\",\"telephone\":\"(314) 275-0414\",\"legalName\":\"Rose Web Services LLC\",\"foundingDate\":\"2001-04-02\",\"numberOfEmployees\":{\"@type\":\"QuantitativeValue\",\"minValue\":\"11\",\"maxValue\":\"50\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\",\"name\":\"Jeff Wilson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"caption\":\"Jeff Wilson\"},\"description\":\"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.\",\"sameAs\":[\"https:\\\/\\\/www.rosehosting.com\",\"https:\\\/\\\/www.facebook.com\\\/rosehosting.helpdesk\"],\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/author\\\/jwilson\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Install Apache Cassandra on CentOS 7 | RoseHosting","description":"How to Install Apache Cassandra on CentOS 7 | RoseHosting","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:\/\/www.rosehosting.com\/blog\/how-to-install-apache-cassandra-on-centos-7\/","og_locale":"en_US","og_type":"article","og_title":"How to Install Apache Cassandra on CentOS 7","og_description":"How to Install Apache Cassandra on CentOS 7 | RoseHosting","og_url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-apache-cassandra-on-centos-7\/","og_site_name":"RoseHosting","article_publisher":"https:\/\/www.facebook.com\/RoseHosting","article_author":"https:\/\/www.facebook.com\/rosehosting.helpdesk","article_published_time":"2019-08-26T20:24:13+00:00","article_modified_time":"2022-12-08T14:28:55+00:00","og_image":[{"width":742,"height":372,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/08\/how-to-install-apache-cassandra-on-centos7.jpg","type":"image\/jpeg"}],"author":"Jeff Wilson","twitter_card":"summary_large_image","twitter_creator":"@rosehosting","twitter_site":"@rosehosting","twitter_misc":{"Written by":"Jeff Wilson","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-apache-cassandra-on-centos-7\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-apache-cassandra-on-centos-7\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"How to Install Apache Cassandra on CentOS 7","datePublished":"2019-08-26T20:24:13+00:00","dateModified":"2022-12-08T14:28:55+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-apache-cassandra-on-centos-7\/"},"wordCount":802,"commentCount":0,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-apache-cassandra-on-centos-7\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/08\/how-to-install-apache-cassandra-on-centos7.jpg","keywords":["apache cassandra","centos 7"],"articleSection":["CentOS","Databases","Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-apache-cassandra-on-centos-7\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-apache-cassandra-on-centos-7\/","url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-apache-cassandra-on-centos-7\/","name":"How to Install Apache Cassandra on CentOS 7 | RoseHosting","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-apache-cassandra-on-centos-7\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-apache-cassandra-on-centos-7\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/08\/how-to-install-apache-cassandra-on-centos7.jpg","datePublished":"2019-08-26T20:24:13+00:00","dateModified":"2022-12-08T14:28:55+00:00","description":"How to Install Apache Cassandra on CentOS 7 | RoseHosting","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-apache-cassandra-on-centos-7\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-apache-cassandra-on-centos-7\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-apache-cassandra-on-centos-7\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/08\/how-to-install-apache-cassandra-on-centos7.jpg","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/08\/how-to-install-apache-cassandra-on-centos7.jpg","width":742,"height":372},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-apache-cassandra-on-centos-7\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rosehosting.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Install Apache Cassandra on CentOS 7"}]},{"@type":"WebSite","@id":"https:\/\/www.rosehosting.com\/blog\/#website","url":"https:\/\/www.rosehosting.com\/blog\/","name":"RoseHosting.com","description":"Premium Linux Tutorials Since 2001","publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.rosehosting.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.rosehosting.com\/blog\/#organization","name":"RoseHosting","url":"https:\/\/www.rosehosting.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","width":192,"height":192,"caption":"RoseHosting"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/RoseHosting","https:\/\/x.com\/rosehosting","https:\/\/www.linkedin.com\/in\/rosehosting\/"],"description":"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.","email":"info@rosehosting.com","telephone":"(314) 275-0414","legalName":"Rose Web Services LLC","foundingDate":"2001-04-02","numberOfEmployees":{"@type":"QuantitativeValue","minValue":"11","maxValue":"50"}},{"@type":"Person","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713","name":"Jeff Wilson","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","caption":"Jeff Wilson"},"description":"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.","sameAs":["https:\/\/www.rosehosting.com","https:\/\/www.facebook.com\/rosehosting.helpdesk"],"url":"https:\/\/www.rosehosting.com\/blog\/author\/jwilson\/"}]}},"_links":{"self":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/30733","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/comments?post=30733"}],"version-history":[{"count":4,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/30733\/revisions"}],"predecessor-version":[{"id":43828,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/30733\/revisions\/43828"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/31889"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=30733"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=30733"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=30733"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}