ES启动报错 uncaught exception in thread [main]org.elasticsearch.bootstrap.StartupException:

完整的错误信息是: 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://blog.csdn.net/curryni/article/details/80580337

 

 

你可能感兴趣的:(ES问题)