1. Download cassandra
Key notes
----------
Session replication on database
Nodes/Zones
ACID
C - Consistency.. Cassandra provides eventual consistency
A - Availability
P - Partitioning ...processing can continue in the face
CQL - Cassandra query language
Let’s start with a short survey of some of the key concepts of Cassandra:
Cluster – a collection of nodes or Data Centers arranged in a ring architecture. A name must be assigned to every cluster, which will subsequently be used by the participating nodes
Keyspace – If you are coming from a relational database, then the schema is the respective keyspace in Cassandra. The keyspace is the outermost container for data in Cassandra. The main attributes to set per keyspace are the Replication Factor, the Replica Placement Strategy and the Column Families
Column Family – Column Families in Cassandra are like tables in Relational Databases. Each Column Family contains a collection of rows which are represented by a Map>. The key gives the ability to access related data together
Column – A column in Cassandra is a data structure which contains a column name, a value and a timestamp. The columns and the number of columns in each row may vary in contrast with a relational database where data are well structured
commands:
desc keyspaces
use demo
desc tables
desc department;
Key notes
----------
Session replication on database
Nodes/Zones
ACID
C - Consistency.. Cassandra provides eventual consistency
A - Availability
P - Partitioning ...processing can continue in the face
CQL - Cassandra query language
Let’s start with a short survey of some of the key concepts of Cassandra:
Cluster – a collection of nodes or Data Centers arranged in a ring architecture. A name must be assigned to every cluster, which will subsequently be used by the participating nodes
Keyspace – If you are coming from a relational database, then the schema is the respective keyspace in Cassandra. The keyspace is the outermost container for data in Cassandra. The main attributes to set per keyspace are the Replication Factor, the Replica Placement Strategy and the Column Families
Column Family – Column Families in Cassandra are like tables in Relational Databases. Each Column Family contains a collection of rows which are represented by a Map
Column – A column in Cassandra is a data structure which contains a column name, a value and a timestamp. The columns and the number of columns in each row may vary in contrast with a relational database where data are well structured
commands:
desc keyspaces
use demo
desc tables
desc department;