【问题标题】:Dropping internal Hive table is not deleting the contents of the underlying Azure Blob Storage删除内部 Hive 表不会删除基础 Azure Blob 存储的内容
【发布时间】:2015-10-07 06:47:29
【问题描述】:

我希望通过在容器内容上创建一个内部 Hive 表并删除该表来删除 Azure Blob 容器的内容,如下所示。该容器包含一堆文本文件。但是,删除 Hive 表似乎不会删除容器的内容。

我是否正确假设删除内部表不会删除容器的内容,因为 HDInsight 使用 Azure Blob 存储作为其存储而不是 HDFS?任何见解将不胜感激。谢谢。

干杯 瑞恩

--Create internal table
CREATE TABLE temp_logs(
student_id INT,
subject_id INT,
marks INT,
insert_date STRING)
ROW FORMAT DELIMITED FIELDS TERMINATED BY ',' 
LOCATION 'wasb://logs@myaccount.blob.core.windows.net/';

--Drop internal table and its underlying files in Azure Blob
DROP TABLE temp_logs;

【问题讨论】:

    标签: azure hive azure-hdinsight


    【解决方案1】:

    删除内部配置单元表将删除数据。它与其他 hadoop 系统的行为相同。

    当您删除表时,容器将保留。即使您删除了集群,容器也会保留。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2022-01-13
      • 1970-01-01
      • 2019-02-06
      • 2020-03-22
      • 2017-05-20
      • 1970-01-01
      • 2020-04-09
      • 2015-09-23
      相关资源
      最近更新 更多