Database Research & Development

  • Home
  • NoSQL
    • NoSQL
    • Cassandra
  • Databases
    • Database Theory
    • Database Designing
    • SQL Server Coding Standards
    • SQL Server
    • PostgreSQL
    • MySQL
    • Greenplum
    • Linux
  • Interviews
    • SQL Server Interviews
    • MySQL Interviews
    • SQL Puzzles
  • DBA Scripts
    • SQL Server DBA Scripts
    • PostgreSQL DBA Scripts
    • MySQL DBA Scripts
    • Greenplum DBA Scripts
  • Home
  • Blog Archives !
  • (: Laugh@dbrnd :)
  • Contact Me !
sqlserverinterviews
Home 2016 April NoSQL: Install Single Node Cassandra 3.5 on Ubuntu 14.04

NoSQL: Install Single Node Cassandra 3.5 on Ubuntu 14.04

This article is half-done without your Comment! *** Please share your thoughts via Comment ***

Now, I am going to learn and share NoSQL Apache Cassandra practical demonstration.
In the previous series of articles, I shared a basic theory about NoSQL and Apache Cassandra.

In this post, I am providing steps to install Single Node Cassandra Cluster on Ubuntu 14.04.

Step 1:
Cassandra requires Oracle Java Runtime Environment.
Install Oracle Java Virtual Machine.
Add Oracle JRE package.

1
sudo add-apt-repository ppa:webupd8team/java

Step 2:
Update the database package:

1
sudo apt-get update

In the second step, If you get any error like: “unable to lock directory /var/lib/apt/lists/”

Step 2.1:
Search running apt-get processes:

1
ps -A | grep apt-get

Step 2.2:
If any process is running as apt-get, kill it

1
2
3
4
5
6
sudo kill -9 [process-id]
 
--example:
/*
sudo kill -9 14521
*/

Step 3:
Accept the license agreement and install the Oracle JRE.

1
sudo apt-get install oracle-java8-set-default

Step 4:
After successfully installtion, verify JRE Version.

1
2
3
4
5
6
7
8
java -version
 
--output:
/*
java version "1.8.0_77"
Java(TM) SE Runtime Environment (build 1.8.0_77-b03)
Java HotSpot(TM) 64-Bit Server VM (build 25.77-b03, mixed mode)
*/

Step 5:
Install Cassandra from the official Apache Software Foundation repositories.
The latest tick-tock release is Cassandra 3.5, released on 2016-04-13.
Below commands to add repository source from www.apache.org.
In the below command, you can change the value of 35x version. e.g, for version 3.5 = 35x, for version 2.2 = 22x.

1
echo "deb http://www.apache.org/dist/cassandra/debian 35x main" | sudo tee -a /etc/apt/sources.list.d/cassandra.sources.list

1
echo "deb-src http://www.apache.org/dist/cassandra/debian 35x main" | sudo tee -a /etc/apt/sources.list.d/cassandra.sources.list

Step 6:
Require to add three public key from the Apache Software Foundation.

First key:

1
gpg --keyserver pgp.mit.edu --recv-keys F758CE318D77295D

1
gpg --export --armor F758CE318D77295D | sudo apt-key add -

Second key:

1
gpg --keyserver pgp.mit.edu --recv-keys 2B5C1B00

1
gpg --export --armor 2B5C1B00 | sudo apt-key add -

Third key:

1
gpg --keyserver pgp.mit.edu --recv-keys 0353B12C

1
gpg --export --armor 0353B12C | sudo apt-key add -

Step 7:
Update the package.

1
sudo apt-get update

Step 8:
Install Cassandra.

1
sudo apt-get install cassandra

Step 9:
Check the status of Cassandra Service.

1
2
3
4
5
6
sudo service cassandra status
 
--output:
/*
* Cassandra is running
*/

Step 10:
You can also check the status of cluster.
status UN means Up and Normal.

1
2
3
4
5
6
7
8
9
10
11
12
sudo nodetool status
 
-- output
/*
ubuntu@ip-:~$ sudo nodetool status
Datacenter: datacenter1
=======================
Status=Up/Down
|/ State=Normal/Leaving/Joining/Moving
-- Address Load Tokens Owns (effective) Host ID Rack
UN 127.0.0.1 110.53 KB 256 100.0% 6e9ccab2-f9c1-40cf-8cb5-abbf95b84342 rack1
*/

Step 11:
Now, You can connect Cassandra Query Language command line interface.

1
cqlsh

Install NoSQL Cassandra 3.5

Apr 29, 2016Anvesh Patel
NoSQL: Cassandra Architecture - Read and Write operations in The Ring (Day 2)NoSQL: Create your first Cassandra Keyspace
Anvesh Patel
Anvesh Patel

Database Engineer

April 29, 2016 Cassandra, NoSQLAnvesh Patel, Cassandra, Column Store, database, database research and development, dbrnd, Document Store, Graph Store, Install, Key Value Store, NoSQL, Not Only SQL, Ubuntu 14.04, Unstrucutred
About Me!

I'm Anvesh Patel, a Database Engineer certified by Oracle and IBM. I'm working as a Database Architect, Database Optimizer, Database Administrator, Database Developer. Providing the best articles and solutions for different problems in the best manner through my blogs is my passion. I have more than six years of experience with various RDBMS products like MSSQL Server, PostgreSQL, MySQL, Greenplum and currently learning and doing research on BIGData and NoSQL technology. -- Hyderabad, India.

About DBRND !

dbrnd

This is a personal blog (www.dbrnd.com).

Any views or opinions represented in this blog are personal and belong solely to the blog owner and do not represent those of people, institutions or organizations that the owner may or may not be associated with in professional or personal capacity, unless explicitly stated.

Feel free to challenge me, disagree with me, or tell me I’m completely nuts in the comments section of each blog entry, but I reserve the right to delete any comment for any reason whatsoever (abusive, profane, rude, or anonymous comments) - so keep it polite.

The content of this website is protected by copyright. No portion of this website may be copied or replicated in any form without the written consent of the website owner.

Recent Comments !
  • Anvesh Patel { Sure will do... } – May 27, 12:43 PM
  • Anvesh Patel { Great... } – May 27, 12:41 PM
  • Anvesh Patel { Great... } – May 27, 12:39 PM
  • Anvesh Patel { Great... } – May 27, 12:36 PM
  • Anvesh Patel { Great... } – May 27, 12:28 PM
  • Anvesh Patel { Great... } – May 27, 12:27 PM
  • Anvesh Patel { Great... } – May 27, 12:16 PM
  • Older »
Follow Me !
  • facebook
  • linkedin
  • twitter
  • youtube
  • google
  • flickr
© 2015 – 2019 All rights reserved. Database Research & Development (dbrnd.com)
Posting....