Basic
Cassandra is an extremely scalable, high performance distributed NoSQL database that is structured to manage great amounts of data across many service servers. Apache Cassandra provides high availability with not a single point of failure. Here, let us first understand the term NoSQL Database.
Actually a NoSQL Database also called as Not Only SQL is a database which has the machinery to store and retrieve data with simple query other than the tabular relations used in the RDBMS. This type of database supports easy replication and is schema-free with simple API, consistent and can control huge data. Thus, Apache Cassandra is a distributed, open-source and decentralized storage management system.
Cassandra was initially invented at Facebook for an inbox search. After that, it was made open-sourced by Facebook in July 2008. Later on, Apache Incubator accepted it in March 2009 and then it was made Apache top-level project since February 2010.
Cassandra manages a large amount of structured data spread out across the world with no chance of failure. It is really faulted tolerant and consistent. It is a column-based database that implements a Dynamo-style replication model but enhances a more dominant “column family” data model.
Today, Cassandra is used by few biggest companies such as Facebook, Twitter, Cisco, eBay, Netflix, Rackspace, Twitter, etc.
Cassandra query language is used to access Cassandra through its nodes. In CQL, a Keyspace is a namespace that describes data replication on nodes. Coders use cqlsh a quick to work with CQL or other application language drivers.
CREATE KEYSPACE <identifier> WITH <properties>
For example,
cqlsh.> CREATE KEYSPACE learnCQl.com WITH
replication = {'class':'Simpleplan', 'replication_factor' : 3};
Also, let’s create a table using CQL syntax:
CREATE (TABLE | COLUMNFAMILY) <tablename>
('<column-definition>' , '<column-definition>')
(WITH <option> AND <option>)
We can define a Column like this:
column name1 data type,
column name2 data type,
Like:
age int,
name text
For example,
cqlsh> USE learnCQl;
cqlsh: learnCQl>; CREATE TABLE studs(
studs_id int PRIMARY KEY,
studs_name text,
studs_city text,
studs_phone varint
);
It created a table with columns studs_id, studs_name, studs_city, and studs_phone.
You can learn Cassandra tutorial if you have interest in Database management and you can visit the official website for more details cassandra.apache.org
In terms of prerequisites, if you have basic knowledge of JAVA programming then it is a simple tutorial and we can easily understand all the concepts. In addition to this, it would be great if you have any prior knowledge of database queries and any of the Linux ideas.
Apache Cassandra is an exceptionally useful topic for software specialists, especially those who are aimed to learn the wires of Cassandra and also deal with practice.
Hadoop, Data Science, Statistics & others
This website or its third-party tools use cookies, which are necessary to its functioning and required to achieve the purposes illustrated in the cookie policy. By closing this banner, scrolling this page, clicking a link or continuing to browse otherwise, you agree to our Privacy Policy
Hadoop, Data Science, Statistics & others
Call Our Course Advisors
IN : +91-8800880140