背景:elasticsearch单个node节点写入数据-CSDN博客

需要设置密码才能作为外部调用,不设置我不会用。设置方法见上一篇。

设置密码出现如下问题:

Unexpected response code [503] from calling PUT http://172.19.0.1:9200/_security/user/apm_system/_password?pretty

Cause: Cluster state has not been recovered yet, cannot write to the [null] index

当你在 Elasticsearch 中启用安全功能并尝试设置内置用户的密码时,如果遇到 `503 Service Unavailable` 错误,并且错误信息提示“Cluster state has not been recovered yet”,这通常意味着 Elasticsearch 集群尚未完全启动或恢复。

### 可能的原因和解决方法

1. **集群未完全启动**
   - Elasticsearch 集群可能还在启动过程中,尚未准备好接受请求。
   - **解决方法**:等待一段时间,确保 Elasticsearch 集群完

点赞(0) 打赏

评论列表 共有 0 条评论

暂无评论

微信公众账号

微信扫一扫加关注

发表
评论
返回
顶部