<?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>ocal Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/ocal/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Fri, 26 Jun 2020 23:10:43 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>How to install Apache Cassandra on Ubuntu 20.04?</title>
		<link>https://www.osradar.com/install-apache-cassandra-ubuntu-20-04/</link>
					<comments>https://www.osradar.com/install-apache-cassandra-ubuntu-20-04/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Fri, 26 Jun 2020 23:10:41 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[apache cassandra]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[focal]]></category>
		<category><![CDATA[Focal Fossa]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[ocal]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=21376</guid>

					<description><![CDATA[<p>A functional quality application needs a quality database manager. Especially when the application is designed for web and with multiple execution nodes. In this sense, most of the best available solutions are open source. This gives us an idea of the great quality of programs that exist whose developers release the source code of the [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-apache-cassandra-ubuntu-20-04/">How to install Apache Cassandra on Ubuntu 20.04?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>A functional quality application needs a quality database manager. Especially when the application is designed for web and with multiple execution nodes. In this sense, most of the best available solutions are open source. This gives us an idea of the great quality of programs that exist whose developers release the source code of the application. On the other hand, these database managers can be SQL or NoSQL according to the need of the application. So in this post, you will learn how to install a NoSQL and open source database manager like Apache Cassandra on Ubuntu 20.04</p>



<p><a href="http://cassandra.apache.org/" target="_blank" rel="noreferrer noopener">Apache Cassandra</a> is one of those applications that would take many post to cover all its features. In general, it is a <a href="https://www.osradar.com/tag/nosql/" target="_blank" rel="noreferrer noopener">NoSQL</a> database manager that is sponsored by the Apache foundation. This way it is easy to assume that it is open source and that it is strongly supported by the community.</p>



<p>Its main utility? is that it allows to make high-performance data clusters worldwide and above all we can make changes without data loss or falls. Then, the segment to which it is directed is a little less broad than other alternatives such as <a rel="noreferrer noopener" href="https://www.osradar.com/how-to-install-mongodb-on-ubuntu-18-04/" target="_blank">MongoDB</a>.</p>



<p>So, let us start.</p>



<h2>Install Apache Cassandra on Ubuntu 20.04</h2>



<p>Before starting the tutorial, we suggest you update the system.</p>



<pre class="wp-block-preformatted">:~$ sudo apt update<br>:~$ sudo apt upgrade</pre>



<p>In this way, the necessary security patches are installed to increase the stability of the system.</p>



<p>The best way to install Apache Cassandra on your system is to use the official repositories provided by the application developers.</p>



<p>First, install some necessary packages:</p>



<pre class="wp-block-preformatted">:~$ sudo apt install wget curl gnupg gnupg1 gnupg2</pre>



<p>Then, download the GPG key from the Cassandra Apache repository.</p>



<pre class="wp-block-preformatted">:~$ wget https://www.apache.org/dist/cassandra/KEYS
--2020-06-26 19:10:09-- https://www.apache.org/dist/cassandra/KEYS
Resolving www.apache.org (www.apache.org)… 95.216.24.32, 40.79.78.1, 2a01:4f9:2a:185f::2
Connecting to www.apache.org (www.apache.org)|95.216.24.32|:443… connected.
HTTP request sent, awaiting response… 302 Found
Location: https://downloads.apache.org/cassandra/KEYS [following]
--2020-06-26 19:10:10-- https://downloads.apache.org/cassandra/KEYS
Resolving downloads.apache.org (downloads.apache.org)… 88.99.95.219, 2a01:4f8:10a:201a::2
Connecting to downloads.apache.org (downloads.apache.org)|88.99.95.219|:443… connected.
HTTP request sent, awaiting response… 200 OK
Length: 258626 (253K)
Saving to: ‘KEYS’
KEYS 100%[=====================================================================================>] 252.56K 39.2KB/s in 6.5s
2020-06-26 19:10:18 (39.2 KB/s) - ‘KEYS’ saved [258626/258626]</pre>



<p>Now add it to the operating system.</p>



<pre class="wp-block-preformatted">:~$ sudo apt-key add KEYS
OK</pre>



<p>The next step is to add the Cassandra Apache repository. If you want the latest stable version, then add this repository:</p>



<pre class="wp-block-preformatted">:~$ echo "deb http://www.apache.org/dist/cassandra/debian 311x main" | sudo tee -a /etc/apt/sources.list.d/cassandra.sources.list</pre>



<p>In case you want to use the latest test version, i.e. Cassandra 4</p>



<pre class="wp-block-preformatted">:~$ echo "deb http://www.apache.org/dist/cassandra/debian 40x main" | sudo tee -a /etc/apt/sources.list.d/cassandra.sources.list</pre>



<p>Remember, you only have to add a repository.</p>



<p>Then, update the APT cache.</p>



<pre class="wp-block-preformatted">:~$ sudo apt update</pre>



<p>Finally, install Apache Cassandra by running the following command:</p>



<pre class="wp-block-preformatted">:~$ sudo apt install cassandra
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following additional packages will be installed:
ca-certificates-java fontconfig-config fonts-dejavu-core java-common libavahi-client3 libavahi-common-data libavahi-common3 libcups2 libfontconfig1 libjpeg-turbo8
libjpeg8 liblcms2-2 libnspr4 libnss3 libpcsclite1 libpython2-stdlib libpython2.7-minimal libpython2.7-stdlib libxi6 libxrender1 libxtst6 openjdk-8-jre-headless
python-is-python2 python2 python2-minimal python2.7 python2.7-minimal x11-common
Suggested packages:
cassandra-tools default-jre cups-common liblcms2-utils pcscd libnss-mdns fonts-dejavu-extra fonts-ipafont-gothic fonts-ipafont-mincho fonts-wqy-microhei
fonts-wqy-zenhei fonts-indic python2-doc python-tk python2.7-doc binutils binfmt-support
The following NEW packages will be installed:
ca-certificates-java cassandra fontconfig-config fonts-dejavu-core java-common libavahi-client3 libavahi-common-data libavahi-common3 libcups2 libfontconfig1
libjpeg-turbo8 libjpeg8 liblcms2-2 libnspr4 libnss3 libpcsclite1 libpython2-stdlib libpython2.7-minimal libpython2.7-stdlib libxi6 libxrender1 libxtst6
openjdk-8-jre-headless python-is-python2 python2 python2-minimal python2.7 python2.7-minimal x11-common
0 upgraded, 29 newly installed, 0 to remove and 39 not upgraded.
Need to get 75.6 MB of archives.
After this operation, 180 MB of additional disk space will be used.
Do you want to continue? [Y/n]</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="274" src="https://www.osradar.com/wp-content/uploads/2020/06/1-10-1024x274.png" alt="1.- Installing Apache Cassandra on Ubuntu 20.04" class="wp-image-21377" srcset="https://www.osradar.com/wp-content/uploads/2020/06/1-10-1024x274.png 1024w, https://www.osradar.com/wp-content/uploads/2020/06/1-10-300x80.png 300w, https://www.osradar.com/wp-content/uploads/2020/06/1-10-768x205.png 768w, https://www.osradar.com/wp-content/uploads/2020/06/1-10-696x186.png 696w, https://www.osradar.com/wp-content/uploads/2020/06/1-10-1068x286.png 1068w, https://www.osradar.com/wp-content/uploads/2020/06/1-10.png 1335w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>1.- Installing Apache Cassandra on Ubuntu 20.04</figcaption></figure>



<p>Once the installation is completed, the system will automatically start it as it is a <a href="https://www.osradar.com/the-linux-systemctl-command/" target="_blank" rel="noreferrer noopener">systemd</a> managed service.</p>



<p>Therefore, it is advisable to check the operation of the program with:</p>



<pre class="wp-block-preformatted">:~$ sudo systemctl status cassandra
● cassandra.service - LSB: distributed storage system for structured data
Loaded: loaded (/etc/init.d/cassandra; generated)
Active: active (running) since Fri 2020-06-26 19:43:01 UTC; 14min ago
Docs: man:systemd-sysv-generator(8)
Tasks: 47 (limit: 846)
Memory: 594.0M
CGroup: /system.slice/cassandra.service
└─5232 java -ea -da:net.openhft… -XX:+UseThreadPriorities -XX:+HeapDumpOnOutOfMemoryError -Xss256k -XX:StringTableSize=1000003 -XX:+AlwaysPreTouch -XX:-U>
Jun 26 19:43:01 osradar systemd[1]: Starting LSB: distributed storage system for structured data…
Jun 26 19:43:01 osradar systemd[1]: Started LSB: distributed storage system for structured data.
lines 1-11/11 (END)</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="221" src="https://www.osradar.com/wp-content/uploads/2020/06/2-9-1024x221.png" alt="2.- Apache Cassandra service status" class="wp-image-21378" srcset="https://www.osradar.com/wp-content/uploads/2020/06/2-9-1024x221.png 1024w, https://www.osradar.com/wp-content/uploads/2020/06/2-9-300x65.png 300w, https://www.osradar.com/wp-content/uploads/2020/06/2-9-768x166.png 768w, https://www.osradar.com/wp-content/uploads/2020/06/2-9-696x150.png 696w, https://www.osradar.com/wp-content/uploads/2020/06/2-9-1068x231.png 1068w, https://www.osradar.com/wp-content/uploads/2020/06/2-9.png 1365w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>2.- Apache Cassandra service status</figcaption></figure>



<p>Finally, it will be ready to use.</p>



<h2>Preparing Apache Cassandra for the first use</h2>



<p>Apache Cassandra is already installed, but it is convenient to make some adjustments before using it completely.</p>



<p>All Apache Cassandra settings are in the file <code>/etc/cassandra/cassandra.yaml</code></p>



<p>There, you have to change some values like these:</p>



<pre class="wp-block-preformatted">cluster_name : ['cluster_name']</pre>



<p>This value specifies the name of the cluster you will form with Apache Cassandra.</p>



<p>Also,you can define the seeds of the cluster, you have to specify the IP addresses in this section:</p>



<pre class="wp-block-preformatted">seeds: ["ip_address", "ip_address"]</pre>



<p>Also, it is recommended to change Apache Cassandra&#8217;s default port with the directive:</p>



<pre class="wp-block-preformatted">storage_port :[port]</pre>



<p>Then, save the changes, close the editor, and finally restart the service to apply the changes:</p>



<pre class="wp-block-preformatted">:~$ sudo systemctl restart cassandra</pre>



<p>So, enjoy it.</p>



<h2>Conclusion</h2>



<p>In this post, you learned how to install Apache Cassandra on Ubuntu 20.04. With this NoSQL database manager, you will be able to cluster data at the level of large networks. All without sacrificing system resources and with high performance without packet loss.</p>



<p>So, share this post, join <a href="https://t.me/osradar" target="_blank" rel="noreferrer noopener">our Telegram Channel</a> and buy us a coffee.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-apache-cassandra-ubuntu-20-04/">How to install Apache Cassandra on Ubuntu 20.04?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-apache-cassandra-ubuntu-20-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
