您好,欢迎来到五一七教育网。
搜索
您的当前位置:首页【elasticsearch】ES启动报错 uncaught exception in thread [main]org.elasticsearch.bootstrap.Startup

【elasticsearch】ES启动报错 uncaught exception in thread [main]org.elasticsearch.bootstrap.Startup

来源:五一七教育网

完整的错误信息是:uncaught exception in thread [main]org.elasticsearch.bootstrap.StartupException:
java.lang.IllegalStateException: failed to obtain node locks, tried [[/data/elasticsearch]] with lock id [0]; maybe these locations are not writable or multiple nodes were started without increasing [node.max_local_storage_nodes] (was [1])

寻找主要信息:failed to obtain node locks

简单理解为:绑定节点失败!!!

百度后,好多人同样遇到了这个问题,导致的原因可能是因为之前运行的es还没有正常关闭。

**第一步:**通过命令:ps aux | grep ‘elastic’ 进行查看

ES可能已经起了两个进程,把进程kill掉之后重新启动就可以了。

**第二步:**通过命令: kill -9 进程号 关闭此进程。

**第三步:**重新启动es。./bin/elasticsearch

参考博文:https:///curryni/article/details/80580337

因篇幅问题不能全部显示,请点此查看更多更全内容

Copyright © 2019- 517ttc.cn 版权所有 赣ICP备2024042791号-8

违法及侵权请联系:TEL:199 18 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务