{"id":3132,"date":"2016-10-21T18:53:58","date_gmt":"2016-10-21T22:53:58","guid":{"rendered":"https:\/\/www.globo.tech\/learning-center\/?p=3132"},"modified":"2018-01-12T14:04:19","modified_gmt":"2018-01-12T19:04:19","slug":"install-cassandra-ubuntu-14","status":"publish","type":"post","link":"https:\/\/www.globo.tech\/learning-center\/install-cassandra-ubuntu-14\/","title":{"rendered":"How to Install Cassandra on Ubuntu 14"},"content":{"rendered":"<h1>How to Install Cassandra on Ubuntu 14<\/h1>\n<p>Apache Cassandra is a distributed database system designed to manage massive amounts of data, fast, without losing sleep. If you have big data needs that require clusters of servers, and don&#8217;t want to struggle with traditional relational databases and their associated scaling difficulties, then Cassandra may be your solution. Proven in dozens of high-profile companies, it provides highly available replicated data storage on commodity hardware or cloud infrastructure. It also integrates with existing monitoring and logging frameworks, both essential components of a resilient cloud deployment.<\/p>\n<h2>Getting Started<\/h2>\n<p>This guide will get you up and running with a Cassandra database instance which you can later scale up. It expects that you have the following:<br \/>\n\u2022 1 server (<a href=\"https:\/\/www.globo.tech\/cloud-server-pricing\" target=\"_blank\">Cloud Server<\/a> or <a href=\"http:\/\/www.globo.tech\/dedicated-server-hosting\" target=\"_blank\">Dedicated Server<\/a>) running Ubuntu 14.<br \/>\n\u2022 Root access<\/p>\n<h2>Tutorial<\/h2>\n<p><strong>Install Java<\/strong><br \/>\nCassandra requires Java 1.8, which is unfortunately not shipped with this distribution. Begin by adding this package repository which includes the necessary Java version.<\/p>\n<p><code>add-apt-repository ppa:webupd8team\/java<br \/>\napt-get update<\/code><\/p>\n<p>With the repository installed, Java 1.8 should be available. Install that next.<\/p>\n<p><code>apt-get install oracle-java8-set-default<\/code><\/p>\n<p>The installation should have succeeded. To confirm that it worked, let&#8217;s check the Java version by running the below command.<\/p>\n<p><code>java -version<\/code><\/p>\n<p><code class=\"gris\">java version \"1.8.0_101\"<br \/>\nJava(TM) SE Runtime Environment (build 1.8.0_101-b13)<br \/>\nJava HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode)<\/code><\/p>\n<p>With the correct Java version installed, we&#8217;ll next install the Datastax repository. This makes Cassandra available via your package manager, thus easing the initial installation and future upgrades.<\/p>\n<p><code>echo \"deb http:\/\/debian.datastax.com\/community stable main\" | sudo tee -a \/etc\/apt\/sources.list.d\/cassandra.sources.list<\/code><\/p>\n<p>You&#8217;ll also need the trusted key for this repository. The key lets your package manager confirm that the packages it downloads are those actually built by the Datastax maintainers.<\/p>\n<p><code>curl -L http:\/\/debian.datastax.com\/debian\/repo_key | sudo apt-key add -<\/code><\/p>\n<p><strong>Install Cassandra<\/strong><\/p>\n<p>With these pieces in place, we can now update your package list and install the Cassandra package.<\/p>\n<p><code>apt-get update<br \/>\napt-get install cassandra -y<\/code><\/p>\n<p>If you want to enter the Cassandra command line, use the cqlsh command as shown:<\/p>\n<p><code>[root@cassandra ~]# cqlsh<br \/>\nConnected to Test Cluster at 127.0.0.1:9042.<br \/>\n[cqlsh 5.0.1 | Cassandra 3.0.8 | CQL spec 3.4.0 | Native protocol v4]<br \/>\nUse HELP for help.<br \/>\ncqlsh><\/code><\/p>\n<p>You can also check the status of your Cassandra nodes with the &#8220;nodetool&#8221; command:<\/p>\n<p><code class=\"gris\">[root@cassandra ~]# nodetool status<br \/>\nDatacenter: datacenter1<br \/>\n=======================<br \/>\nStatus=Up\/Down<br \/>\n|\/ State=Normal\/Leaving\/Joining\/Moving<br \/>\n--  Address    Load       Tokens       Owns (effective)  Host ID                               Rack<br \/>\nUN  127.0.0.1  102.78 KB  256          100.0%            05d9accc-9404-438c-b03b-869432439042  rack1<br \/>\n[root@cassandra ~]#<\/code><\/p>\n<h2>Conclusion<\/h2>\n<p>Cassandra is up and running, ready to be used directly or scaled out across a cluster. If you know anyone looking for a quality solution for their big data needs, share this article so they too can enjoy the benefits of this robust database solution.<\/p>\n<!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p>How to Install Cassandra on Ubuntu 14 Apache Cassandra is a distributed database system designed to manage massive amounts of data, fast, without losing sleep. If you have big data needs that require clusters of servers, and don&#8217;t want to struggle with traditional relational databases and their associated scaling difficulties, then Cassandra may be your<!-- AddThis Advanced Settings generic via filter on get_the_excerpt --><!-- AddThis Share Buttons generic via filter on get_the_excerpt --><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[61],"tags":[],"class_list":["post-3132","post","type-post","status-publish","format-standard","hentry","category-database"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Install Cassandra on Ubuntu 14 - Globo.Tech<\/title>\n<meta name=\"description\" content=\"This tutorial will show you how to install Cassandra on your Ubuntu 14 server. Read now &amp; Enjoy this fast distributed database system!\" \/>\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.globo.tech\/learning-center\/install-cassandra-ubuntu-14\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Install Cassandra on Ubuntu 14 - Globo.Tech\" \/>\n<meta property=\"og:description\" content=\"This tutorial will show you how to install Cassandra on your Ubuntu 14 server. Read now &amp; Enjoy this fast distributed database system!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.globo.tech\/learning-center\/install-cassandra-ubuntu-14\/\" \/>\n<meta property=\"og:site_name\" content=\"Globo.Tech\" \/>\n<meta property=\"article:published_time\" content=\"2016-10-21T22:53:58+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-01-12T19:04:19+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2016\/09\/GloboTech-Logo.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1920\" \/>\n\t<meta property=\"og:image:height\" content=\"963\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"GloboTech Communications\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"GloboTech Communications\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.globo.tech\/learning-center\/install-cassandra-ubuntu-14\/\",\"url\":\"https:\/\/www.globo.tech\/learning-center\/install-cassandra-ubuntu-14\/\",\"name\":\"How to Install Cassandra on Ubuntu 14 - Globo.Tech\",\"isPartOf\":{\"@id\":\"https:\/\/www.globo.tech\/learning-center\/#website\"},\"datePublished\":\"2016-10-21T22:53:58+00:00\",\"dateModified\":\"2018-01-12T19:04:19+00:00\",\"author\":{\"@id\":\"https:\/\/www.globo.tech\/learning-center\/#\/schema\/person\/e17784b37f4a4f49b7bc611847912e87\"},\"description\":\"This tutorial will show you how to install Cassandra on your Ubuntu 14 server. Read now & Enjoy this fast distributed database system!\",\"breadcrumb\":{\"@id\":\"https:\/\/www.globo.tech\/learning-center\/install-cassandra-ubuntu-14\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.globo.tech\/learning-center\/install-cassandra-ubuntu-14\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.globo.tech\/learning-center\/install-cassandra-ubuntu-14\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.globo.tech\/learning-center\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install Cassandra on Ubuntu 14\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.globo.tech\/learning-center\/#website\",\"url\":\"https:\/\/www.globo.tech\/learning-center\/\",\"name\":\"Globo.Tech\",\"description\":\"Welcome to the Official Globo.Tech Learning Center\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.globo.tech\/learning-center\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.globo.tech\/learning-center\/#\/schema\/person\/e17784b37f4a4f49b7bc611847912e87\",\"name\":\"GloboTech Communications\",\"sameAs\":[\"http:\/\/www.gtcomm.net\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Install Cassandra on Ubuntu 14 - Globo.Tech","description":"This tutorial will show you how to install Cassandra on your Ubuntu 14 server. Read now & Enjoy this fast distributed database system!","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.globo.tech\/learning-center\/install-cassandra-ubuntu-14\/","og_locale":"en_US","og_type":"article","og_title":"How to Install Cassandra on Ubuntu 14 - Globo.Tech","og_description":"This tutorial will show you how to install Cassandra on your Ubuntu 14 server. Read now & Enjoy this fast distributed database system!","og_url":"https:\/\/www.globo.tech\/learning-center\/install-cassandra-ubuntu-14\/","og_site_name":"Globo.Tech","article_published_time":"2016-10-21T22:53:58+00:00","article_modified_time":"2018-01-12T19:04:19+00:00","og_image":[{"width":1920,"height":963,"url":"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2016\/09\/GloboTech-Logo.png","type":"image\/png"}],"author":"GloboTech Communications","twitter_misc":{"Written by":"GloboTech Communications","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.globo.tech\/learning-center\/install-cassandra-ubuntu-14\/","url":"https:\/\/www.globo.tech\/learning-center\/install-cassandra-ubuntu-14\/","name":"How to Install Cassandra on Ubuntu 14 - Globo.Tech","isPartOf":{"@id":"https:\/\/www.globo.tech\/learning-center\/#website"},"datePublished":"2016-10-21T22:53:58+00:00","dateModified":"2018-01-12T19:04:19+00:00","author":{"@id":"https:\/\/www.globo.tech\/learning-center\/#\/schema\/person\/e17784b37f4a4f49b7bc611847912e87"},"description":"This tutorial will show you how to install Cassandra on your Ubuntu 14 server. Read now & Enjoy this fast distributed database system!","breadcrumb":{"@id":"https:\/\/www.globo.tech\/learning-center\/install-cassandra-ubuntu-14\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.globo.tech\/learning-center\/install-cassandra-ubuntu-14\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.globo.tech\/learning-center\/install-cassandra-ubuntu-14\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.globo.tech\/learning-center\/"},{"@type":"ListItem","position":2,"name":"How to Install Cassandra on Ubuntu 14"}]},{"@type":"WebSite","@id":"https:\/\/www.globo.tech\/learning-center\/#website","url":"https:\/\/www.globo.tech\/learning-center\/","name":"Globo.Tech","description":"Welcome to the Official Globo.Tech Learning Center","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.globo.tech\/learning-center\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.globo.tech\/learning-center\/#\/schema\/person\/e17784b37f4a4f49b7bc611847912e87","name":"GloboTech Communications","sameAs":["http:\/\/www.gtcomm.net"]}]}},"_links":{"self":[{"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/posts\/3132","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/comments?post=3132"}],"version-history":[{"count":2,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/posts\/3132\/revisions"}],"predecessor-version":[{"id":4080,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/posts\/3132\/revisions\/4080"}],"wp:attachment":[{"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/media?parent=3132"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/categories?post=3132"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/tags?post=3132"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}