当我尝试将我的 Amazon OpenSearch Service 域连接到 Amazon Quick Sight 时,我收到了错误。
在将 Quick Sight 连接到您的 OpenSearch Service 域之前,请确认您的域与 Quick Sight 位于同一 AWS 区域和 AWS 账户中。
注意:OpenSearch Service 不支持 OpenSearch 引擎 1.3 或更高版本,也不支持旧版 Elasticsearch 引擎 7.7 至 7.10 版本。
根据您的使用案例,完成相应的解决方法。
连接到 OpenSearch Service 域时,您可能会收到以下错误:
“Your database uses an unsupported engine version.Please review supported versions.”
当未在 OpenSearch Service 域上激活兼容模式时,将会出现此错误。OpenSearch 版本 1.0 包含 Enable compatibility mode(启用兼容模式)域设置。一些 OpenSearch Service 客户端和插件会在连接之前检查集群版本。兼容模式会将 OpenSearch Service 设置为将其版本报告为 7.10,以便这些客户端可以继续运行。激活兼容模式后,Quick Sight 会识别正确的版本并建立连接。
要激活兼容模式,请运行以下命令:
PUT /_cluster/settings{ "persistent": { "compatibility.override_main_response_version": true } }
将 OpenSearch Service 域数据导入 SPICE (Super-fast, Parallel, In-memory Calculation Engine) 时,您可能会收到以下错误之一:
“Can't perform this Action.The domain X has not enabled cursor.”
“Unable to prepare this table.”
要在 OpenSearch Service 域中激活 SQL 光标,请运行以下命令:
PUT _opendistro/_sql/settings{ "transient": { "opendistro.sql.cursor.enabled": "true" }, "persistent": { "opendistro.sql.cursor.enabled": "true" } }
如果您已在 OpenSearch Service 域中的 OpenSearch Dashboards 上激活精细访问控制,则可能会收到以下错误:
“GENERAL_SQL_EXCEPTION.Connection error forbidden.”
出现此错误的原因是 Quick Sight 服务角色未映射到 OpenSearch Service 角色。
要解决此错误,请按照向域添加权限以允许从 Quick Sight 进行访问中的说明进行操作。
Using Amazon OpenSearch Service with Amazon Quick Sight(将 Amazon OpenSearch Service 与 Amazon Quick Sight 配合使用)
Supported data sources(支持的数据来源)
Connecting to a VPC with Amazon Quick Sight(使用 Amazon Quick Sight 连接到 VPC)
Amazon OpenSearch Service 的操作最佳实践
rePost Polyglot
已提问 3 年前
PeiChang Hsu
已发布 4 个月前