gpt4 book ai didi

elasticsearch - 为什么Elasticsearch集群在集群重启时无法识别 super 用户?

转载 作者:行者123 更新时间:2023-12-03 02:33:16 25 4
gpt4 key购买 nike

我在3节点 flex 集群上创建了一个 super 用户。如下所示,该用户非常存在,我敢肯定我使用的是正确的密码。另外,它还允许我更改密码,但同时提示用户不存在。
userslist

关闭所有三个节点并再次重新启动后,它开始提供安全异常(exception)。

{ "error": { "root_cause": [ { "type": "security_exception", "reason": "unable to authenticate user [prashant] for REST request [/_cluster/health]", "header": { "WWW-Authenticate": "Basic realm=\"security\" charset=\"UTF-8\"" } } ], "type": "security_exception", "reason": "unable to authenticate user [prashant] for REST request [/_cluster/health]", "header": { "WWW-Authenticate": "Basic realm=\"security\" charset=\"UTF-8\"" } }, "status": 401 }

最佳答案

因此,所有用户及其密码及其角色都存储在elasticsearch 的系统索引中。好像您丢失了数据(=索引),elasticsearch无法识别该用户,因为在系统索引中没有该用户的条目。

您应该使用内置的具有 super 用户权限的 flex 用户
GET users API 执行curt / http请求,以验证该用户是否确实存在。

关于elasticsearch - 为什么Elasticsearch集群在集群重启时无法识别 super 用户?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59464724/

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