hbase和hive有什么区别?(Hadoop) [英] What is the difference between hbase and hive? (Hadoop)

查看:38
本文介绍了hbase和hive有什么区别?(Hadoop)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

据我了解,Hbase 是 Hadoop 数据库,Hive 是数据仓库.

From my understanding, Hbase is the Hadoop database and Hive is the data warehouse.

Hive 允许创建表并在其中存储数据,您还可以将现有的 HBase 表映射到 Hive 并对其进行操作.

Hive allows to create tables and store data in it, you can also map your existing HBase tables to Hive and operate on them.

如果 hive 做所有这些,为什么我们应该使用 hbase?我们可以单独使用蜂巢吗?我很困惑:(

why we should use hbase if hive do all that? can we use hive by itself? I'm confused :(

推荐答案

简单来说,使用 hive,您可以在表上触发类似 SQL 的查询(有一些例外),并用于批处理操作.使用 hbase 时,您可以进行实时查询,并且基于键值对.

So in simple terms, with hive you can fire SQL like queries (with some exceptions) on your table/s and is used in batch operation. While with hbase, you can do real time querying and is based on key value pair.

为什么我们应该使用 hbase 如果 hive 做所有这些?我们可以单独使用 hive"因为 Hive 不支持更新您的数据集.因此,如果您有大型分析处理应用程序,请使用 Hive;如果您有实时获取/设置/更新请求处理,请使用 Hbase.

"why we should use hbase if hive do all that? can we use hive by itself" Because Hive doesn't supports updating your data set. So if you have large analytical processing application use Hive and if you have real time get/set/update request processing, use Hbase.

这篇关于hbase和hive有什么区别?(Hadoop)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆