hive - 无法删除指向不再存在的 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 处于无效状态。
有没有办法摆脱这些孤儿表?
解决方案
推荐阅读
- c# - 如果列表有元素,则使用 linq 谓词进行操作
- flutter - 参数类型“对象?” 不能分配给参数类型 List
- android - 如何在 termux 环境中进行串行通信
- php - PrestaShop - 如何开始处理主题
- r - 将标签添加到 levelplot 地图上的 shapefile 点:错误
- javascript - 如何访问加载在 html 文件中的 JSON 值?
- java - Hapi FHIR RestfulServer 未解析 R4 同意资源的 id
- reactjs - TypeError:加载 svg 时无法读取未定义的属性“tap”
- python - Matplotlib 子图没有按预期工作?
- python - 如何不使用多重继承混淆类变量?