<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Apache Cassandra &#8211; Hostry Help Center</title>
	<atom:link href="https://help.hostry.com/article-tags/apache-cassandra/feed/" rel="self" type="application/rss+xml" />
	<link>https://help.hostry.com</link>
	<description>Full information on how to use HOSTRY, provided by 24/7 community based support</description>
	<lastBuildDate>Fri, 21 Jan 2022 09:28:27 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.9.12</generator>

<image>
	<url>https://help.hostry.com/wp-content/uploads/cache/2021/01/cropped-apple-icon-180x180-1/836712163.png</url>
	<title>Apache Cassandra &#8211; Hostry Help Center</title>
	<link>https://help.hostry.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>How to install Apache Cassandra 3.11.x on CentOS 7</title>
		<link>https://help.hostry.com/knowledge-base/how-to-install-apache-cassandra-3-11-x-on-centos-7/</link>
					<comments>https://help.hostry.com/knowledge-base/how-to-install-apache-cassandra-3-11-x-on-centos-7/#respond</comments>
		
		<dc:creator><![CDATA[Alex]]></dc:creator>
		<pubDate>Tue, 08 Oct 2019 09:51:40 +0000</pubDate>
				<guid isPermaLink="false">https://help.hostry.com/?post_type=ht_kb&#038;p=762</guid>

					<description><![CDATA[Apache Cassandra is a free NoSQL database management system. This system is designed to create highly scalable and reliable repositories of huge data arrays presented in the form of a hash. Here we describe how to install Apache Cassandra (its latest version 3.11.) For servers running CentOS 7 First! You [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p><strong><a href="https://en.wikipedia.org/wiki/Apache_Cassandra"><em>Apache Cassandra</em></a></strong> is a free NoSQL database management system. This system is designed to create highly scalable and reliable repositories of huge data arrays presented in the form of a hash. Here we describe how to install Apache Cassandra (its latest version 3.11.) For servers running CentOS 7</p>



<p><strong>First!</strong> You need to understand that the <strong><a href="https://hostry.com/products/vps/">server</a></strong> needs at least <strong><em>4GB</em></strong> of memory. If it is less, then this can lead to instability in the work of Apache Cassandra 3.11.2 on CentOS 7.</p>



<h2 id="install-openjdk-jre-8" >Install OpenJDK JRE 8</h2>



<p>The latest version of Java 8 is required for Apache Cassandra. To do this, you need to install the latest version of OpenJDK JRE 1.8</p>



<pre class="wp-block-code"><code>sudo yum install -y java-1.8.0-openjdk</code></pre>



<p>Next, you can determine the installation result itself</p>



<pre class="wp-block-code"><code>java -version</code></pre>



<p>A further conclusion would be something like this:</p>



<pre class="wp-block-code"><code>openjdk version "1.8.0_161"
OpenJDK Runtime Environment (build 1.8.0_161-b14)
OpenJDK 64-Bit Server VM (build 25.161-b14, mixed mode)</code></pre>



<h2 id="install-python-2-7-if-it-is-not-on-your-system" >Install Python 2.7 if it is not on your system</h2>



<p>It is Python version 2.7 that is needed since in Python 3 (for example), you may have problems launching the Apache Cassandra<strong><em> cqlsh</em></strong> shell</p>



<p>If for some reason you don’t have one, you can install it using the following command</p>



<pre class="wp-block-code"><code>sudo yum install python -y</code></pre>



<h2 id="install-the-latest-stable-version-of-apache-cassandra" >Install the latest stable version of Apache Cassandra</h2>



<p>To get started, create an Apache Cassandra 3.11.x YUM repo:</p>



<pre class="wp-block-code"><code>cat &lt;&lt;EOF | sudo tee -a /etc/yum.repos.d/cassandra311x.repo
[cassandra]
name=Apache Cassandra
baseurl=https://www.apache.org/dist/cassandra/redhat/311x/
gpgcheck=1
repo_gpgcheck=1
gpgkey=https://www.apache.org/dist/cassandra/KEYS
EOF</code></pre>



<p>Then, install Apache Cassandra 3.11.2 using the above YUM repository:</p>



<pre class="wp-block-code"><code>sudo yum install cassandra -y
sudo systemctl daemon-reload</code></pre>



<h2 id="verify-apache-cassandra-installation" >Verify Apache Cassandra Installation</h2>



<p>You need to start the Apache Cassandra daemon:</p>



<pre class="wp-block-code"><code>sudo service cassandra start</code></pre>



<p>Further, if everything is correct, you will receive the following output:</p>



<pre class="wp-block-code"><code>Starting cassandra (via systemctl):                         [  OK  ]</code></pre>



<p>If you want Apache Cassandra to start automatically, then you need to run the following command:</p>



<pre class="wp-block-code"><code>sudo chkconfig cassandra on</code></pre>



<p>You must use the <strong><em>nodetool</em></strong> program to show the status of Apache Cassandra on the current node:</p>



<pre class="wp-block-code"><code>nodetool status</code></pre>



<p>The output will look like this:</p>



<pre class="wp-block-preformatted">Datacenter: datacenter1
=======================
Status=Up/Down
|/ State=Normal/Leaving/Joining/Moving
--  Address    Load       Tokens       Owns (effective)  Host ID                               Rack
UN  127.0.0.1  103.65 KiB  256          100.0%            e977023b-7dd7-4e89-9ee7-aaa4c45df51c  rack1
</pre>



<p>You can use the <strong><em>cqlsh</em></strong> shell to interact with Apache Cassandra:</p>



<pre class="wp-block-code"><code>cqlsh localhost</code></pre>



<p>The output should look something like this:</p>



<pre class="wp-block-code"><code>Connected to Test Cluster at localhost:9042.
[cqlsh 5.0.1 | Cassandra 3.11.2 | CQL spec 3.4.4 | Native protocol v4]
Use HELP for help.
cqlsh></code></pre>



<p>Next, type <strong><em>exit</em></strong> and press <strong><em>Enter</em></strong> to exit the cqlsh shell.</p>



<p> To stop<strong> Apache Cassandra</strong>, run the following command:</p>



<pre class="wp-block-code"><code>sudo service cassandra stop</code></pre>
]]></content:encoded>
					
					<wfw:commentRss>https://help.hostry.com/knowledge-base/how-to-install-apache-cassandra-3-11-x-on-centos-7/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install Apache Cassandra 3.11.x on Debian 11</title>
		<link>https://help.hostry.com/knowledge-base/how-to-install-apache-cassandra-3-11-x-on-debian-11/</link>
					<comments>https://help.hostry.com/knowledge-base/how-to-install-apache-cassandra-3-11-x-on-debian-11/#respond</comments>
		
		<dc:creator><![CDATA[Alex]]></dc:creator>
		<pubDate>Fri, 21 Jan 2022 09:28:27 +0000</pubDate>
				<guid isPermaLink="false">https://help.hostry.com/?post_type=ht_kb&#038;p=4634</guid>

					<description><![CDATA[Apache Cassandra&#160;is a free NoSQL database management system. This system is designed to create highly scalable and reliable repositories of huge data arrays presented in the form of a hash. Here we describe how to install Apache Cassandra (its latest version 3.11.) For servers running CentOS 7 First!&#160;You need to [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p><strong><a href="https://en.wikipedia.org/wiki/Apache_Cassandra"><em>Apache Cassandra</em></a></strong>&nbsp;is a free NoSQL database management system. This system is designed to create highly scalable and reliable repositories of huge data arrays presented in the form of a hash. Here we describe how to install Apache Cassandra (its latest version 3.11.) For servers running CentOS 7</p>



<p><strong>First!</strong>&nbsp;You need to understand that the&nbsp;<strong><a href="https://hostry.com/products/vps/">server</a></strong>&nbsp;needs at least&nbsp;<strong><em>4GB</em></strong>&nbsp;of memory. If it is less, then this can lead to instability in the work of Apache Cassandra 3.11.2 on Debian 11.</p>



<h2 id="java-installation" >Java installation</h2>



<p>In order to use Apache Cassandra correctly and without problems, you should install Java on your server. This can be done using the following command:</p>



<pre class="wp-block-code"><code>apt install openjdk-11-jdk -y</code></pre>



<p>Next, you need to configure the repositories and other dependencies.</p>



<pre class="wp-block-code"><code>apt install apt-transport-https gnupg2 -y</code></pre>



<p>Then you need to add the key. The name commonly used for it is Apache Cassandra GPG (use wget)</p>



<pre class="wp-block-code"><code>wget -q -O - https://www.apache.org/dist/cassandra/KEYS | sudo apt-key add -</code></pre>



<p>Then you should add the downloaded repository</p>



<pre class="wp-block-code"><code>sh -c 'echo "deb https://downloads.apache.org/cassandra/debian 40x main" | sudo tee -a /etc/apt/sources.list.d/cassandra.sources.list'</code></pre>



<h2 id="installing-apache-cassandra" >Installing Apache Cassandra</h2>



<p>Before installation, we recommend that you update the system</p>



<pre class="wp-block-code"><code>apt-get update</code></pre>



<p>Then you can proceed to install</p>



<pre class="wp-block-code"><code>apt-get install Apache Cassandra</code></pre>



<p>Then you can enable this utility to run every time your system boots</p>



<pre class="wp-block-code"><code>systemctl enable cassandra</code></pre>



<p>After successful installation, we also recommend checking the status of the Apache Cassandra service</p>



<pre class="wp-block-code"><code>systemctl status cassandra</code></pre>



<p>To interact with the Cassandra cluster, you will be able to login with the following simple command:</p>



<pre class="wp-block-code"><code>cqlsh</code></pre>
]]></content:encoded>
					
					<wfw:commentRss>https://help.hostry.com/knowledge-base/how-to-install-apache-cassandra-3-11-x-on-debian-11/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
