Cassandra Study Notes

  1. Cassandra does not have a central coordinator, .e.g., namenode in hdfs or hmaster in hbase. It does not have single point failure (SPF)
  2. Every data row needs have a primary key. Primary key is hashed using MD5
  3. Cassandra use consistent hashing for keys distribution
  4. Cassandra data storage model is different from hdfs
  5. Cassandra enterprise version (product of DataStax) have developed a hdfs compatible filesystem, Cassandra file system (CFS), which can support hadoop M/R, hive, etc.
  6. The idea is to use dedicate Cassandra table column family to store file meta data (file name, path). And use another one to store file block data. By doing this, it removes the need for name node and data node. Basically, it re-implement hdfs api.
  7. A data node in Cassandra serves both as data node as well as coordinator. A client cannot connect to any number of data node for reading data. If the data does not exist in current collected node, it will compute the sharding and forward the request to the correct destination node. This is different as Hbase, where client directly know the destination region server through the sharding meta data saved in zookeeper.
Advertisements
Cassandra Study Notes

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s