Joe*_*oco 5 settings amazon-web-services elasticsearch
我正在尝试更新 AWS 上的 Elasticsearch 集群设置,但出现此错误:
Message: "Your request: '/_cluster/settings' is not allowed for verb: GET"
Run Code Online (Sandbox Code Playgroud)
我的命令:
curl -XGET localhost:9200/_cluster/settings
Run Code Online (Sandbox Code Playgroud)
Obs:Get 或 Put 方法都不起作用
curl -XPUT http://localhost:9200/_cluster/settings -d '{"persistent" : {"indices.fielddata.cache.size" : "30%"}}'
{"Message":"Your request: '/_cluster/settings' payload is not allowed."}
Run Code Online (Sandbox Code Playgroud)
参考:
https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-update-settings.html
这是AWS的问题吗?
是的,这是 AWS 对 5.3 版本之前的 ElasticSearch 的限制。
在 Elasticsearch 5.3 之前,Amazon ES 域上的 _cluster/settings API 仅支持 HTTP PUT 方法,而不支持 GET 方法。
AWS 支持_cluster/settingsElasticsearch 5.3 及其他 Elasticsearch 操作,但不是全部。您可以参考他们的文档:
https://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/aes-supported-es-operations.html#es_version_api_notes
| 归档时间: |
|
| 查看次数: |
10687 次 |
| 最近记录: |