【问题标题】:Athena View doesn't return rows when accessing it in AWS glue在 AWS glue 中访问 Athena View 时不返回行
【发布时间】:2023-02-17 17:20:32
【问题描述】:

我目前正在尝试在 AWS glue 中使用 athena 视图。下面是代码:

DataSource0 = (
    glueContext.read.format("jdbc")
    .option("AwsCredentialsProviderClass","com.simba.athena.amazonaws.auth.InstanceProfileCredentialsProvider")
    .option("driver", "com.simba.athena.jdbc.Driver")
    .option("url", "jdbc:awsathena://athena.us-east-1.amazonaws.com:443")
    .option("dbtable", 'AwsDataCatalog."silver".vw_xyz')
    .option("S3OutputLocation","s3://datadrop-test/xyz/")
    .load()
    )
DataSource0.printSchema()

驱动版本=AthenaJDBC42_2.0.25.1002

生成以下输出文件(大小<1kb)

这些文件仅包含列。似乎胶水无法从视图中获取记录。同一视图在 athena 中返回多行。任何帮助将不胜感激。

【问题讨论】:

    标签: amazon-web-services aws-glue aws-glue-data-catalog amazon-athena


    【解决方案1】:

    你有没有设法解决这个问题?我有同样的问题。我假设它是一个 IAM 问题,但无法弄清楚到底是什么导致了它!

    【讨论】:

      猜你喜欢
      • 2020-06-27
      • 2018-09-26
      • 2021-12-22
      • 2022-10-17
      • 2019-07-21
      • 2018-06-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多