2. What is Apache Cassandra?
Apache Cassandra Is An Open Source, Distributed And Decentralized/Distributed
Storage System (Database), For Managing Very Large Amounts Of Structured Data
Spread Out Across The World. It Provides Highly Available Service With No Single
Point Of Failure.
Listed Below Are Some Of The Notable Points Of Apache Cassandra −
It Is Scalable, Fault-tolerant, And Consistent.
It Is A Column-oriented Database.
Its Distribution Design Is Based On Amazon’s Dynamo And Its Data Model On
Google’s Bigtable.
Created At Facebook, It Differs Sharply From Relational Database Management
Systems.
Cassandra Implements A Dynamo-style Replication Model With No Single Point Of
Failure, But Adds A More Powerful “Column Family” Data Model.
Cassandra Is Being Used By Some Of The Biggest Companies Such As Facebook,
Twitter, Cisco, Rackspace, Ebay, Twitter, Netflix, And More.
Big Data Analytics Roll no 13
3. NoSQLDatabase
A Nosql Database (Sometimes Called As Not Only SQL) Is A Database That
Provides A Mechanism To Store And Retrieve Data Other Than The Tabular
Relations Used In Relational Databases.
The Primary Objective Of A Nosql Database Is To Have
Simplicity Of Design,
Horizontal Scaling, And
Finer Control Over Availability.
Big Data Analytics Roll no 13
5. NoSQL vs. Relational Database
Relational Database NoSql Database
Supports powerful query language. Supports very simple query language.
It has a fixed schema. No fixed schema.
Follows ACID (Atomicity, Consistency, Isolation, and Durability). It is only “eventually consistent”.
Supports transactions. Does not support transactions.
Big Data Analytics Roll no 13
8. Cassandra Query Language
Users Can Access Cassandra Through Its Nodes Using Cassandra Query Language
(CQL). CQL Treats The Database (Keyspace) As A Container Of Tables.
Write Operations (Commit Logs, Mem-table, Sstable)
Read Operations (Mem-table, Sstable)
Big Data Analytics Roll no 13
9. Data Models of Cassandra and RDBMS
RDBMS Cassandra
RDBMS deals with structured data. Cassandra deals with unstructured data.
It has a fixed schema. Cassandra has a flexible schema.
In RDBMS, a table is an array of arrays. (ROW x
COLUMN)
In Cassandra, a table is a list of “nested key-value
pairs”. (ROW x COLUMN key x COLUMN value)
Database is the outermost container that contains
data corresponding to an application.
Keyspace is the outermost container that
contains data corresponding to an application.
Tables are the entities of a database. Tables or column families are the entity of a
keyspace.
Row is an individual record in RDBMS. Row is a unit of replication in Cassandra.
Column represents the attributes of a relation. Column is a unit of storage in Cassandra.
RDBMS supports the concepts of foreign keys,
joins.
Relationships are represented using collections.Big Data Analytics Roll no 13
11. Installation steps
Pre-installation Setup - Before Installing Cassandra In Linux Environment, We Require To Set Up
Linux Using Ssh
Create A User
SSH Setup And Key Generation
Installing Java
Jdk-7u71-linux-x64.Tar.Gz Will Be Downloaded Onto Your System.
Download Cassandra
Configure Cassandra
Configure Cassandra
Give Permissions To Folders
Start Cassandra
Programming Environment
Eclipse Environment
Maven Dependencies
Link- Www.Guru99.Com (To Know Step By Step)
Big Data Analytics Roll no 13