1. HBase:
该模型用于提供对大量结构化数据的随机访问。它建立在hadoop文件系统的顶部,本质上是面向列的。它曾用于将数据存储在HDFS中。它是提供数据复制的开源数据库。
2. MongoDB:
MongoDB是面向文档的,不需要数据的行和列格式。它提供了高性能,并且本质上是动态的,不需要像传统RDBMS中那样预定义架构。 MongoDB以JSON格式存储数据,允许您以所需的任何形式发送数据。它是跨平台数据库,几乎可以与所有平台(例如Windows,Linux等)一起使用。
HBase和MongoDB之间的区别:
HBase | MongoDB |
---|---|
It is column oriented. | It is document oriented. |
It is written in JAVA. | It is written in C, C++ and Javascript. |
Developed by Apache software foundation. | Developed by MongoBD Inc. |
It has triggers. | It also has triggers. |
It has no secondary indexes. | It has secondary indexes. |
Uses a selectable replication factor. | Uses a master-slave replication factor. |
Data are stored in form of key/value pair. | Data are not stored in form of key/value pair. |
HBase has high latency operations. | MongoDB has low latency operations. |
HBase is used to store structured data. | MongoDB is used to store any kind of data. |
It has distributed database. | It has decentralized database. |
HBase is less complex than MongoDB. | It is more complex than HBase. |