【问题标题】:How to view Elasticserarch AWS cluster settings如何查看 Elasticsearch AWS 集群设置
【发布时间】:2016-10-17 17:09:47
【问题描述】:

我正在尝试更新 AWS 上的弹性搜索集群设置,但是 我收到了这个错误:

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 的问题吗?

【问题讨论】:

  • 你好。你在哪个版本上试过这个?我们在 v7.7 上,但遇到同样的错误

标签: amazon-web-services elasticsearch settings


【解决方案1】:

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

在 Elasticsearch 5.3 之前,Amazon ES 域上的 _cluster/settings API 仅支持 HTTP PUT 方法,不支持 GET 方法。

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2020-10-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-11-05
    • 1970-01-01
    相关资源
    最近更新 更多