amazon-redshift - 无法为 Amazon Redshift Spectrum 创建外部架构
问题描述
尝试按照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;"
关于我为什么遇到这个或如何解决它的任何建议?
解决方案
事实证明,您需要向集群所有者授予 AthenaFullAccess 和 S3ReadOnlyAccess 权限,而不仅仅是您登录 redshift 的角色
推荐阅读
- javascript - 如何在 Reactjs 中使用 getObject 从 AWS S3 下载文件?
- arrays - 可变大小的 C 初始化和非初始化数组
- html - CSS 在表格中以绿色更改正值
- html - 检查复选框是否被选中而不单击它
- c++ - 不要在 C++ 代码中的文本文件中打印空格
- docker - 挂载目录时如何使符号链接指向docker容器内的文件
- arrays - 如何以角度格式化我的响应数组?
- vim - 在vim中将expr从映射转换为exe命令的问题
- c++ - CUDA 是否实现了 std::complex 运算符 =?
- php - Wordpress PayPal IPN 仅将数字数据插入数据库