- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
What are the differences between HBase and Cassandra?
Let us understand the concepts of HBase and Cassandra before learning the differences between them.
Cassandra
Cassandra has a different infrastructure. Cassandra uses different DBMS along with their infrastructure. When Cassandra uses different DBMS then time complexity will increase.
Cassandra supports ordered partitioning. This can lead to row size up to 10 megabytes.
In Cassandra, we use seed nodes. These nodes perform inter-cluster communication. Here, we use internal communication. Casandra has lightweight transactions.
Cassandra is based on the Jbury shell. But it has a specific Query language. That is CQL, it is modelled after SQL. It is better than HBase in Documentation. It uses the bloom filters for key lookup
HBase
HBase utilizes Hadoop infrastructure. These have several parts like Zookeeper, data nodes.
HBase doesn't support ordered partitioning. It offers coprocessor capability, and it support triggers. It uses master nodes. These nodes monitor and coordinate the actions of region servers.
HBase we used internode communication. HBase has two transactions, those are ' Check and Put ' and ' Read-Check-Delete '. It is based on the JRuby shell and is not better than Cassandra in documentation.
HBase uses bloom filters as a form of indexing.
Differences
The major differences between HBase and Cassandra are as follows −
HBase | Cassandra |
---|---|
HBase utilize Hadoop infrastructure | Cassandra uses different DBMS along with their infrastructure |
It is based on Bigtable | It is based on DynamoDB |
HBase is written in JAVA | Cassandra is written in JAVA |
HBase has no secondary indexes. | Cassandra has restricted secondary indexes. |
HBase has distributed database | Cassandra has decentralized database |
HBase has triggers | Cassandra does not have triggers |
It provides more consistency | It provide less consistency |
HBase handles up to 1000 nodes | Cassandra handles up to 400 nodes |
It is less complex than Cassandra | It is more complex. |