【发布时间】:2019-11-17 12:44:33
【问题描述】:
此处的 AWS 文档表明支持 SQL 查询:https://aws.amazon.com/about-aws/whats-new/2019/05/amazon-elasticsearch-service-sql-support/
此页面显示语法: https://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/sql-support.html
POST elasticsearch_domain/_opendistro/_sql
{
"query": "SELECT * FROM my-index LIMIT 50"
}
在 Kibana 开发工具中运行以下命令
POST my_domain/_opendistro/_sql
{
"query": "SELECT * FROM my-index LIMIT 50"
}
给出错误
{
"error": {
"root_cause": [
{
"type": "invalid_type_name_exception",
"reason": "Document mapping type name can't start with '_', found: [_opendistro]"
}
],
"type": "invalid_type_name_exception",
"reason": "Document mapping type name can't start with '_', found: [_opendistro]"
},
"status": 400
}
我的 ElasticSearch 版本是 6.7。
【问题讨论】:
标签: sql amazon-web-services elasticsearch kibana