首页 > 解决方案 > 无法删除指向不再存在的 Azure 存储帐户的 Hive 表

问题描述

我正在使用基于 HDInsight Hadoop 集群的 Hive——Hadoop 2.7 (HDI 3.6)。

我们有一些旧的 Hive 表指向一些不再存在的非常存储帐户。但是这些表仍然指向这些存储位置,基本上 Hive Metastore 仍然包含对已删除存储帐户的引用。如果我尝试删除这样的配置单元表,我会收到错误消息

FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. MetaException(message:Got exception: org.apache.hadoop.fs.azure.AzureException org.apache.hadoop.fs.azure.AzureException: No credentials found for account <deletedstorage>.blob.core.windows.net in the configuration, and its container data is not accessible using anonymous credentials. Please check if the container exists first. If it is not publicly available, you have to provide account credentials.)

直接操作 Hive Metatstore 是有风险的,因为它可能使 Metastore 处于无效状态。

有没有办法摆脱这些孤儿表?

标签: hiveazure-hdinsight

解决方案


推荐阅读