【问题标题】:msck repair table command runs slow in AWS Athena after deleting few hundred partitions删除数百个分区后,msck 修复表命令在 AWS Athena 中运行缓慢
【发布时间】:2022-07-05 09:49:01
【问题描述】:

我从 AWS Athena 表中删除了大约 700 个分区数据 (s3)。

为了更新分区信息,我正在运行MSCK Repair table 命令,但它的运行时间超过 7 分钟

在删除 700 个分区之前,msck repair table 命令的运行时间不到 15 秒

我指的是:

  1. https://aws.amazon.com/premiumsupport/knowledge-center/athena-msck-repair-table-time-out/

  2. AWS Athena MSCK REPAIR TABLE takes too long for a small dataset

  3. MSCK REPAIR TABLE table name taking long time

按照步骤进行,但无济于事。

有人遇到过这个问题并解决了吗?

【问题讨论】:

    标签: amazon-web-services amazon-athena athena


    【解决方案1】:

    终于可以解决了!

    注意:仅当您知道在您的场景中删除和重新创建表的后果时才使用以下方法。

    删除并重新创建表解决了这个问题。

    我执行“msck repair table”命令以正确表现的步骤:

    1. 在编辑器中复制 Athena 表的 DDL
    2. 放下 Athena 桌子
    3. 使用第 1 步中的 DDL 重新创建 Athena 表。
    4. 运行msck repair table 命令。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-08-26
      • 1970-01-01
      • 1970-01-01
      • 2018-12-02
      • 2018-05-12
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多