【问题标题】:Unable to create external schema for Amazon Redshift Spectrum无法为 Amazon Redshift Spectrum 创建外部架构
【发布时间】:2019-08-10 07:49:23
【问题描述】:

尝试关注https://docs.aws.amazon.com/redshift/latest/dg/c-getting-started-using-spectrum.html,通过 athena 从 redshift 查询 s3 使用情况。

在步骤 3 中尝试创建架构时遇到错误:

"create external schema athena_schema from data catalog 
database 'sampledb' 
iam_role 'arn:aws:iam::<>:role/MySpectrumRole' 
region 'us-east-1';"

错误:"line 1:8: no viable alternative at input 'create external' (service: amazonathena; status code: 400; error code: invalidrequestexception;"

关于我遇到此问题的原因或如何解决它的任何建议?

【问题讨论】:

  • 我强烈建议您使用 Glue 目录,而不是旧版 Athena 目录。

标签: amazon-redshift amazon-athena amazon-redshift-spectrum


【解决方案1】:

事实证明,您需要向集群所有者授予 AthenaFullAccess 和 S3ReadOnlyAccess 权限,而不仅仅是您登录 redshift 的角色

【讨论】:

    猜你喜欢
    • 2021-11-17
    • 2019-08-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-11-26
    • 2017-07-23
    • 2019-10-27
    • 1970-01-01
    相关资源
    最近更新 更多