📜  HBase 和 MongoDB 的区别

📅  最后修改于: 2021-09-12 10:58:57             🧑  作者: Mango

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.