Hive 数据存储在哪里? [英] Where does the Hive data gets stored?

查看:175
本文介绍了Hive 数据存储在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对 hive 在哪里存储数据感到有些困惑.

I am a little confused on where does the hive stores it's data.

它是将数据存储在 HDFS 还是 RDBMS 中?Hive Meta store 是否使用 RDBMS 来存储 hive 表的元数据??

Does it stores it's data in HDFS or in a RDBMS ?? Does Hive Meta store uses a RDBMS to store the hive tables metadata ??

提前致谢!!

推荐答案

Hive 数据存储在 之一中Hadoop 兼容文件系统:S3、HDFS 或其他兼容文件系统.

Hive data are stored in one of Hadoop compatible filesystem: S3, HDFS or other compatible filesystem.

Hive 元数据像 MySQL 一样存储在 RDBMS 中,参见 支持的 RDBMS.

Hive metadata are stored in RDBMS like MySQL, see supported RDBMS.

可以为托管表和外部表指定 Hive 表数据在 S3 或 HDFS 中的位置.

The location of Hive tables data in S3 or HDFS can be specified for both managed and external tables.

托管表和外部表的区别在于,托管表中的DROP TABLE语句将删除表并删除表的数据.而对于外部表 DROP TABLE 将只删除表,数据将保持原样,可用于在其上创建其他表.

The difference between managed and external tables is that DROP TABLE statement, in managed table, will drop the table and delete table's data. Whereas, for external table DROP TABLE will drop only the table and data will remain as is and can be used for creating other tables over it.

在此处查看详细信息:创建/删除/截断表

See details here: Create/Drop/Truncate Table

这篇关于Hive 数据存储在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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