今天手欠 本来想往集群中添加一台ES,配置好后,手欠有运行了一次 setup password 然后 ES启动不来了 错误

Failed to authenticate user 'elastic' against http://172.16.xxx.xxx:9200/_security/_authenticate?pretty
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

Logo

为开发者提供学习成长、分享交流、生态实践、资源工具等服务,帮助开发者快速成长。

更多推荐