【问题标题】:How to link JSON file in S3 bucket with field in AWS Athena如何将 S3 存储桶中的 JSON 文件与 AWS Athena 中的字段链接
【发布时间】:2019-04-06 03:07:38
【问题描述】:

我正在尝试将一些电子邮件信息存储到 Athena 的“主题、发件人、收件人、正文”中,对于正文,我将在其中包含一些大型内容。

我是否可以将 S3 存储桶中的 JSON 或 TXT 文件与正文列中的条目链接,然后从 Athena 中提取?

我已经看到 DynamoDB 有这样的东西,它可以在它的条目中存储对象的引用。

我们可以在雅典娜中做同样的事情吗?如果是这样,有人可以指出我们如何存储这些信息并检索这些数据吗?

谢谢

尼基尔

【问题讨论】:

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


    【解决方案1】:

    Athena 是 Presto,但有一些限制。您可以使用 Hive 语法并直接在 Athena 中创建表,也可以使用 AWS Glue 中的 Crawler 创建表。

    文档链接:

    https://docs.aws.amazon.com/athena/latest/ug/json.html

    https://docs.aws.amazon.com/athena/latest/ug/querying-JSON.html

    https://docs.aws.amazon.com/glue/latest/dg/add-crawler.html

    我对 Json 和 Athena 主题的回答:

    Create Athena table from nested json source

    AWS Glue Custom Classifiers Json Path

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-09-19
      • 1970-01-01
      • 2019-04-28
      • 2017-06-11
      • 2022-01-24
      • 2019-04-10
      • 2020-01-12
      相关资源
      最近更新 更多