如何从Hadoop-Hive中删除/截断表? [英] How to delete/truncate tables from Hadoop-Hive?

查看:272
本文介绍了如何从Hadoop-Hive中删除/截断表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请告诉我如何将表从配置单元中删除,并告诉我从哪里可以获得有关配置单元查询的更多信息。

解决方案

您可以使用删除命令从HDFS中删除元数据和实际数据。

只需删除数据并保留表结构,可使用truncate命令。



有关hive ql的进一步帮助,请查看 hive语言手册


Please tell me how to delete table from hive and also tell from where i can get more information about hive queries.

解决方案

You can use drop command to delete meta data and actual data from HDFS.

And just to delete data and keep the table structure, use truncate command.

For further help regarding hive ql, check language manual of hive.

这篇关于如何从Hadoop-Hive中删除/截断表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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