gpt4 book ai didi

amazon-web-services - 如何查看Elasticsearch AWS集群设置

转载 作者:行者123 更新时间:2023-12-02 22:30:48 24 4
gpt4 key购买 nike

我正在尝试更新AWS上的Elasticsearch集群设置,但是
我收到此错误:

Message: "Your request: '/_cluster/settings' is not allowed for verb: GET"

我的命令:
curl -XGET localhost:9200/_cluster/settings

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."}

引用:

https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-update-settings.html

这是AWS问题吗?

最佳答案

是的,这是5.3版之前对ElasticSearch的AWS约束。

Prior to Elasticsearch 5.3, the _cluster/settings API on Amazon ES domains supported only the HTTP PUT method, not the GET method.



AWS在Elasticsearch 5.3和其他Elasticsearch操作(但不是全部)之后支持 _cluster/settings。您可以引用他们的文档:
https://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/aes-supported-es-operations.html#es_version_api_notes

关于amazon-web-services - 如何查看Elasticsearch AWS集群设置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40092033/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com