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

配置X-Pack设置es用户密码时爆如下错误或设置其他配置时遇到日志中bug

Unexpected response code [503] from calling PUT http://39.104.166.15:9201/_security/user/apm_system/_password?pretty
Cause: Cluster state has not been recovered yet, cannot write to the [null] index

Possible next steps:
* Try running this tool again.
* Try running with the --verbose parameter for additional messages.
* Check the elasticsearch logs for additional error details.
* Use the change password API manually. 

ERROR: Failed to set password for user [apm_system].

查看日志发现
master not discovered yet 尚未发现主节点 直接设置主节点即可

此行代码放到配置文件elasticsearch.yml中重新启动 “node”=要设置为主节点的名称
cluster.initial_master_nodes: [“node”]

{"type": "server", "timestamp": "2020-08-13T08:20:41,055Z", "level": "WARN", "component": "o.e.c.c.ClusterFormationFailureHelper", "cluster.name": "elasticsearch-cluster", "node.name": "es-node1", "message": "master not discovered yet, this node has not previously joined a bootstrapped (v7+) cluster, and [cluster.initial_master_nodes] is empty on this node: have discovered [{es-node1}{5Em3Fv_OTwGMzHu02l-Szg}{jwg9boFPSbCj9oWyz4wWIg}{xx.xxx.xxx.xx}{xx.xxx.xxx.xx:9301}{dilm}{ml.machine_memory=16658386944, xpack.installed=true, ml.max_open_jobs=20}]; discovery will continue using [] from hosts providers and [{es-node1}{5Em3Fv_OTwGMzHu02l-Szg}{jwg9boFPSbCj9oWyz4wWIg}{xx.xxx.xxx.xx}{xx.xxx.xxx.xx:9301}{dilm}{ml.machine_memory=16658386944, xpack.installed=true, ml.max_open_jobs=20}] from last-known cluster state; node term 0, last-accepted version 0 in term 0" }
{"type": "server", "timestamp": "2020-08-13T08:20:41,379Z", "level": "INFO", "component": "o.e.x.s.a.AuthenticationService", "cluster.name": "elasticsearch-cluster", "node.name": "es-node1", "message": "Authentication of [kibana] was terminated by realm [reserved] - failed to authenticate user [kibana]" }

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值