ES ./elasticsearch-setup-passwords

今天手欠 本来想往集群中添加一台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

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值