SlideShare a Scribd company logo
1 of 15
APACHE
CASSANDRA
SUMMARY OF CONTENTS
What is Apache Cassandra?
Evolution of Cassandra ?
Why Cassandra for Big Data?
Apache Cassandra Data types ?
Data Distribution in Apache Cassandra
How to Add Data in Cassandra ?
How to Read Data ?
How to Delete Data ?
Use Cases ?
Advantages and Limitations
Apache Cassandra is an open-source, NoSQL, wide column data store that can quickly
take and process huge amounts of data.
It is decentralized, distributed, scalable, highly available, and fault-tolerant, ,
with identical nodes that are clustered together for eliminating single points of failure.
WHAT IS APACHE CASSANDRA ?
EVOLUTION OF CASSANDRA ?
WHY CASSANDRA FOR BIG DATA?
1. Handles high velocity data with ease
2. Uses schema that support broad varieties of data
3. Is designed for continuous availability
4. Offers quick installation and configuration for multi-node clusters.
5. It is open source and reduces cost as compared to RDBMS.
DATA TYPES IN CASSANDRA ?
1.It supports the most common data types including ASCII, Bigint , BLOB, Boolean counter,
decimal, double, float, int , text, timestamp, UUID, varchar etc.
2.Its data model offers the convenient of the column indexes with the performance of log
structured updates, strong support for denormalization and materialized views and built in
caching.
3.Data access is performed using CQL (Cassandra Query Language) which is resembled to
SQL (Structured Query Language).
DATA DISTRIBUTION IN CASSANDRA ?
Cassandra uses a peer-to-peer model for distributing the data, which enables it to fully
distribute data in the form of variable-length rows, stored by partition keys. Cassandra is
built for its scalability, continuous availability, and has having no single point of
failure.
Many Different databases, such as Postgre SQL, use a master-slave replication model,
in which the writes go to a master node and reads are executed on slaves. To provide high
availability, fault tolerance, and scalability, Cassandra’s peer-to-peer distribution model
provides nodes with open channels of communication. Cassandra uses Tokens ( a 64
bit integer) for determining which node holds what data.
ADDING DATA IN CASSANDRA ?
You can insert data into the columns of a row in a table using the command INSERT.
Syntax for creating data in a table is shown below.
INSERT INTO <tablename>
(<column1 name>, <column2
name>....) VALUES (<value1>,
<value2>....)
USING <option>
Let us assume there is a table called std with columns (std_id, std_name, std_city,
std_phone, std_fee) and you have to insert the following data into the std table.
ADDING DATA IN CASSANDRA ?
Use the commands given below to fill the table with required data.
cqlsh: project1> INSERT INTO std (std_id, std_name, std_city, std_phone,
std_fee) VALUES (1,'Ramesh', 'Hyderabad', 9191234567, 55000);
cqlsh:project1> INSERT INTO std (std_id, std_name, std_city, std_phone,
std_fee) VALUES (2,'Pavan', 'Visakhapatnam', 9191234567, 45000);
cqlsh:project1> INSERT INTO std (std_id, std_name, std_city, std_phone,
std_fee) VALUES (3,'Gayatri', 'Vizainagaram', 9191234567, 47000);
READING DATA IN CASSANDRA ?
SELECT clause is used to read data from a table in Cassandra. By Using this clause, you can read a
whole table, a single column, or a particular cell.
The syntax of SELECT clause is given below
SELECT FROM <tablename>
Assume there is a table in the key space named std with the following details –
cqlsh:project1> select * from std;
cqlsh:project1> SELECT std_name, std_fee from std;
DELETING DATA IN CASSANDRA ?
The following statement deletes the std_fee column of last row –
cqlsh:project1> DELETE std_fee FROM std WHERE emp_id=3; Deletion of
Entire row:-
The following command deletes an entire row from a table.
cqlsh:project1> DELETE FROM std WHERE emp_id=3;
You can delete data from a table using the command DELETE. The syntax is given below
DELETE FROM <identifier> WHERE <condition>;
USE CASES FOR CASSANDRA ?
1. Mobility
2. Security and Fraud Detection
3. Personalization and Recommendation
4. IOT
5. Cloud Operations
ADVANTAGES?
1. Open source
2. Peer to peer Architecture
3. Elastic Scalability
4. High Availability and Fault Tolerence
5. High performance
6. Column oriented
7. Tunable Consistency
8. Schema-Free
LIMITATIONS
?1. A single column value may not be larger than 2 Giga Bytes.
2. The maximum number of column per row is 2 billion.
3. All data read should fit in memory due to thrift streaming support lack.
4. The key must be less than 64k bytes.
THANK YOU

More Related Content

Similar to Cassandra Big Data NoSQL Database

cassandra
cassandracassandra
cassandraAkash R
 
CASSANDRA A DISTRIBUTED NOSQL DATABASE FOR HOTEL MANAGEMENT SYSTEM
CASSANDRA A DISTRIBUTED NOSQL DATABASE FOR HOTEL MANAGEMENT SYSTEMCASSANDRA A DISTRIBUTED NOSQL DATABASE FOR HOTEL MANAGEMENT SYSTEM
CASSANDRA A DISTRIBUTED NOSQL DATABASE FOR HOTEL MANAGEMENT SYSTEMIJCI JOURNAL
 
White paper on cassandra
White paper on cassandraWhite paper on cassandra
White paper on cassandraNavanit Katiyar
 
Cassandra - A decentralized storage system
Cassandra - A decentralized storage systemCassandra - A decentralized storage system
Cassandra - A decentralized storage systemArunit Gupta
 
Cassandra implementation for collecting data and presenting data
Cassandra implementation for collecting data and presenting dataCassandra implementation for collecting data and presenting data
Cassandra implementation for collecting data and presenting dataChen Robert
 
Cassandra - A Distributed Database System
Cassandra - A Distributed Database System Cassandra - A Distributed Database System
Cassandra - A Distributed Database System Md. Shohel Rana
 
Trivadis TechEvent 2016 Big Data Cassandra, wieso brauche ich das? by Jan Ott
Trivadis TechEvent 2016 Big Data Cassandra, wieso brauche ich das? by Jan OttTrivadis TechEvent 2016 Big Data Cassandra, wieso brauche ich das? by Jan Ott
Trivadis TechEvent 2016 Big Data Cassandra, wieso brauche ich das? by Jan OttTrivadis
 
Appache Cassandra
Appache Cassandra  Appache Cassandra
Appache Cassandra nehabsairam
 
Introduction to Apache Cassandra and support within WSO2 Platform
Introduction to Apache Cassandra and support within WSO2 PlatformIntroduction to Apache Cassandra and support within WSO2 Platform
Introduction to Apache Cassandra and support within WSO2 PlatformSrinath Perera
 
Learning Cassandra NoSQL
Learning Cassandra NoSQLLearning Cassandra NoSQL
Learning Cassandra NoSQLPankaj Khattar
 
Storage cassandra
Storage   cassandraStorage   cassandra
Storage cassandraPL dream
 
Apache Cassandra, part 1 – principles, data model
Apache Cassandra, part 1 – principles, data modelApache Cassandra, part 1 – principles, data model
Apache Cassandra, part 1 – principles, data modelAndrey Lomakin
 
Apache Cassandra at the Geek2Geek Berlin
Apache Cassandra at the Geek2Geek BerlinApache Cassandra at the Geek2Geek Berlin
Apache Cassandra at the Geek2Geek BerlinChristian Johannsen
 

Similar to Cassandra Big Data NoSQL Database (20)

Cassandra Database
Cassandra DatabaseCassandra Database
Cassandra Database
 
cassandra
cassandracassandra
cassandra
 
Cassandra no sql ecosystem
Cassandra no sql ecosystemCassandra no sql ecosystem
Cassandra no sql ecosystem
 
CASSANDRA A DISTRIBUTED NOSQL DATABASE FOR HOTEL MANAGEMENT SYSTEM
CASSANDRA A DISTRIBUTED NOSQL DATABASE FOR HOTEL MANAGEMENT SYSTEMCASSANDRA A DISTRIBUTED NOSQL DATABASE FOR HOTEL MANAGEMENT SYSTEM
CASSANDRA A DISTRIBUTED NOSQL DATABASE FOR HOTEL MANAGEMENT SYSTEM
 
White paper on cassandra
White paper on cassandraWhite paper on cassandra
White paper on cassandra
 
Cassandra - A decentralized storage system
Cassandra - A decentralized storage systemCassandra - A decentralized storage system
Cassandra - A decentralized storage system
 
Cassndra (4).pptx
Cassndra (4).pptxCassndra (4).pptx
Cassndra (4).pptx
 
Why Cassandra?
Why Cassandra?Why Cassandra?
Why Cassandra?
 
Cassandra implementation for collecting data and presenting data
Cassandra implementation for collecting data and presenting dataCassandra implementation for collecting data and presenting data
Cassandra implementation for collecting data and presenting data
 
Cassandra - A Distributed Database System
Cassandra - A Distributed Database System Cassandra - A Distributed Database System
Cassandra - A Distributed Database System
 
Trivadis TechEvent 2016 Big Data Cassandra, wieso brauche ich das? by Jan Ott
Trivadis TechEvent 2016 Big Data Cassandra, wieso brauche ich das? by Jan OttTrivadis TechEvent 2016 Big Data Cassandra, wieso brauche ich das? by Jan Ott
Trivadis TechEvent 2016 Big Data Cassandra, wieso brauche ich das? by Jan Ott
 
Appache Cassandra
Appache Cassandra  Appache Cassandra
Appache Cassandra
 
Introduction to Apache Cassandra and support within WSO2 Platform
Introduction to Apache Cassandra and support within WSO2 PlatformIntroduction to Apache Cassandra and support within WSO2 Platform
Introduction to Apache Cassandra and support within WSO2 Platform
 
Learning Cassandra NoSQL
Learning Cassandra NoSQLLearning Cassandra NoSQL
Learning Cassandra NoSQL
 
Storage cassandra
Storage   cassandraStorage   cassandra
Storage cassandra
 
Cassandra Learning
Cassandra LearningCassandra Learning
Cassandra Learning
 
Introduction to my_sql
Introduction to my_sqlIntroduction to my_sql
Introduction to my_sql
 
Apache Cassandra, part 1 – principles, data model
Apache Cassandra, part 1 – principles, data modelApache Cassandra, part 1 – principles, data model
Apache Cassandra, part 1 – principles, data model
 
Apache Cassandra at the Geek2Geek Berlin
Apache Cassandra at the Geek2Geek BerlinApache Cassandra at the Geek2Geek Berlin
Apache Cassandra at the Geek2Geek Berlin
 
Cassandra tutorial
Cassandra tutorialCassandra tutorial
Cassandra tutorial
 

Recently uploaded

_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docxPoojaSen20
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 

Recently uploaded (20)

_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docx
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 

Cassandra Big Data NoSQL Database

  • 2. SUMMARY OF CONTENTS What is Apache Cassandra? Evolution of Cassandra ? Why Cassandra for Big Data? Apache Cassandra Data types ? Data Distribution in Apache Cassandra How to Add Data in Cassandra ? How to Read Data ? How to Delete Data ? Use Cases ? Advantages and Limitations
  • 3. Apache Cassandra is an open-source, NoSQL, wide column data store that can quickly take and process huge amounts of data. It is decentralized, distributed, scalable, highly available, and fault-tolerant, , with identical nodes that are clustered together for eliminating single points of failure. WHAT IS APACHE CASSANDRA ?
  • 5. WHY CASSANDRA FOR BIG DATA? 1. Handles high velocity data with ease 2. Uses schema that support broad varieties of data 3. Is designed for continuous availability 4. Offers quick installation and configuration for multi-node clusters. 5. It is open source and reduces cost as compared to RDBMS.
  • 6. DATA TYPES IN CASSANDRA ? 1.It supports the most common data types including ASCII, Bigint , BLOB, Boolean counter, decimal, double, float, int , text, timestamp, UUID, varchar etc. 2.Its data model offers the convenient of the column indexes with the performance of log structured updates, strong support for denormalization and materialized views and built in caching. 3.Data access is performed using CQL (Cassandra Query Language) which is resembled to SQL (Structured Query Language).
  • 7. DATA DISTRIBUTION IN CASSANDRA ? Cassandra uses a peer-to-peer model for distributing the data, which enables it to fully distribute data in the form of variable-length rows, stored by partition keys. Cassandra is built for its scalability, continuous availability, and has having no single point of failure. Many Different databases, such as Postgre SQL, use a master-slave replication model, in which the writes go to a master node and reads are executed on slaves. To provide high availability, fault tolerance, and scalability, Cassandra’s peer-to-peer distribution model provides nodes with open channels of communication. Cassandra uses Tokens ( a 64 bit integer) for determining which node holds what data.
  • 8. ADDING DATA IN CASSANDRA ? You can insert data into the columns of a row in a table using the command INSERT. Syntax for creating data in a table is shown below. INSERT INTO <tablename> (<column1 name>, <column2 name>....) VALUES (<value1>, <value2>....) USING <option> Let us assume there is a table called std with columns (std_id, std_name, std_city, std_phone, std_fee) and you have to insert the following data into the std table.
  • 9. ADDING DATA IN CASSANDRA ? Use the commands given below to fill the table with required data. cqlsh: project1> INSERT INTO std (std_id, std_name, std_city, std_phone, std_fee) VALUES (1,'Ramesh', 'Hyderabad', 9191234567, 55000); cqlsh:project1> INSERT INTO std (std_id, std_name, std_city, std_phone, std_fee) VALUES (2,'Pavan', 'Visakhapatnam', 9191234567, 45000); cqlsh:project1> INSERT INTO std (std_id, std_name, std_city, std_phone, std_fee) VALUES (3,'Gayatri', 'Vizainagaram', 9191234567, 47000);
  • 10. READING DATA IN CASSANDRA ? SELECT clause is used to read data from a table in Cassandra. By Using this clause, you can read a whole table, a single column, or a particular cell. The syntax of SELECT clause is given below SELECT FROM <tablename> Assume there is a table in the key space named std with the following details – cqlsh:project1> select * from std; cqlsh:project1> SELECT std_name, std_fee from std;
  • 11. DELETING DATA IN CASSANDRA ? The following statement deletes the std_fee column of last row – cqlsh:project1> DELETE std_fee FROM std WHERE emp_id=3; Deletion of Entire row:- The following command deletes an entire row from a table. cqlsh:project1> DELETE FROM std WHERE emp_id=3; You can delete data from a table using the command DELETE. The syntax is given below DELETE FROM <identifier> WHERE <condition>;
  • 12. USE CASES FOR CASSANDRA ? 1. Mobility 2. Security and Fraud Detection 3. Personalization and Recommendation 4. IOT 5. Cloud Operations
  • 13. ADVANTAGES? 1. Open source 2. Peer to peer Architecture 3. Elastic Scalability 4. High Availability and Fault Tolerence 5. High performance 6. Column oriented 7. Tunable Consistency 8. Schema-Free
  • 14. LIMITATIONS ?1. A single column value may not be larger than 2 Giga Bytes. 2. The maximum number of column per row is 2 billion. 3. All data read should fit in memory due to thrift streaming support lack. 4. The key must be less than 64k bytes.