【发布时间】: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