ES集群重新设置密码(第二次执行./elasticsearch-setup-passwords interactive报错)

https://blog.csdn.net/weixin_43210350/article/details/109775605

错误信息
当为es集群设置完一次密码之后,再次执行相同的命令

./elasticsearch-setup-passwords interactive

报错:

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

解决办法:
删除 .security-7 索引,然后重新执行上面命令即可,不用重启es集群

————————————————
版权声明:本文为CSDN博主「L&&DH」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/weixin_43210350/article/details/109775605

 

 

没找到 .security-7 索引,又搜了一下,停止es后删除data文件夹下的文件后再启动es,运行交互密码命令即可

posted @   _海阔天空  阅读(3307)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· DeepSeek 开源周回顾「GitHub 热点速览」
· 记一次.NET内存居高不下排查解决与启示
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
历史上的今天:
2021-02-25 Eclipse代码补全超时报错问题(too long to return from the computeCompletionProposals operation)
点击右上角即可分享
微信分享提示