今天手欠 本来想往集群中添加一台ES,配置好后,手欠有运行了一次 setup password 然后 ES启动不来了 错误
Failed to authenticate user ‘elastic’ against http://172.16.xxx.xxx:9200/_security/_authenticatepretty
Possible causes include:
* The password for the ‘elastic’ user has already been changed on this cluster
* Your elasticsearch node is running against a different keystore
This tool used the keystore at /usr/local/elasticsearch-7.2.0/config/elasticsearch.keystore
ERROR: Failed to verify bootstrap password
参考https://blog.csdn.net/weixin_43210350/article/details/109775605 是可以的
我的步骤是:
1. 先将 xpack disable掉
xpack.security.enabled: true
xpack.security.authc.api_key.enabled: true
在elasticsearch.yml中将这两个值改成false
2. 这样重启ES后 可以进入 index查看 .security-7 删除这个index
curl XDELETE ‘http://localhost:9200/.security-7’
3. 将xpack enable后 重启ES
4. 再次运行 setup password ,密码会更新 这样重新生成新的密码
后来启动kibana时出现如下错误:
将.kibana 的三个index删除后 重启kibana 发现还有错误
查询集群状态 发现是RED
于是查看indices情况,删除RED的Indices
重启kibana 依然不行
最后 删除nodes数据节点 ES101/data$ rm -rf nodes/
OK