如何将 AWS Athena 连接到现有的 Hive Metastore

Mau*_*olo 1 amazon-web-services amazon-athena hive-metastore

我需要将 AWS Athena 服务与现有的 Hive Metastore(不是 AWS Glue)集成。

你能告诉我如何将 Athena 连接到 Hive Metastore。

Jam*_*mes 5

Athena 仅适用于其自己的元存储或相关的 AWS Glue 元存储。它不适用于外部元存储。

但是,您可以在同一个底层 S3 存储上设置多个表或数据库。因此,如果您使用外部元存储将数据写入 S3,则在 Athena 的元存储中设置适当的数据库和表定义后,您可以使用 Athena 查询这些文件。