简体   繁体   English

您如何通过 AWS Quicksight 连接到 Redshift Spectrum 上的外部架构/表?

[英]How do you connect to an external schema/table on Redshift Spectrum through AWS Quicksight?

I have spun up a Redshift cluster and added my S3 external schema by running我已经启动了一个 Redshift 集群并通过运行添加了我的 S3 外部架构

CREATE EXTERNAL SCHEMA s3 FROM DATA CATALOG
DATABASE '<aws_glue_db>'
IAM_ROLE '<redshift_s3_glue_iam_role_arn>';

to access the AWS Glue Data Catalog.访问 AWS Glue 数据目录。 Everything is fine on Redshift, I can query data and all is well. Redshift 上一切正常,我可以查询数据并且一切正常。 On Quicksight, however, the table is recognized but is empty.然而,在 Quicksight 上,该表被识别但为空。

Do i have to move the data into Redshift?我是否必须将数据移动Redshift 中? If so, would the only reason I should be using Redshift be to process Parquet files?如果是这样,我应该使用 Redshift 的唯一原因是处理 Parquet 文件吗?

You should be able to select external tables from redshift, I think the role you're using is missing access to s3您应该能够从 redshift 中选择外部表,我认为您使用的角色缺少对 s3 的访问权限

https://aws.amazon.com/premiumsupport/knowledge-center/redshift-cross-account-glue-s3/ https://aws.amazon.com/premiumsupport/knowledge-center/redshift-cross-account-glue-s3/

最后我只是写了一个自定义的SQL表达式来选择相关字段

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM