What’s the difference between creating a table and creating a columnfamily in Cassandra?

To answer the original question you posed: a column family and a table are the same thing. The name “column family” was used in the older Thrift API. The name “table” is used in the newer CQL API. More info on the APIs can be found here: http://wiki.apache.org/cassandra/API If you need to use “group by,order … Read more

Not enough replica available for query at consistency ONE (1 required but only 0 alive)

You are likely getting this error because the Replication Factor of the keyspace the table you are querying belongs to has a Replication Factor of one, is that correct? If the partition you are reading / updating does not have enough available replicas (nodes with that data) to meet the consistency level, you will get … Read more

What are the differences between a node, a cluster and a datacenter in a cassandra nosql database?

The hierarchy of elements in Cassandra is: Cluster Data center(s) Rack(s) Server(s) Node (more accurately, a vnode) A Cluster is a collection of Data Centers. A Data Center is a collection of Racks. A Rack is a collection of Servers. A Server contains 256 virtual nodes (or vnodes) by default. A vnode is the data … Read more