我的情况是生产环境中,elasticsearch突然崩溃,然后起不来了。
我的日志目录在
vim /var/log/elasticsearch/my-elk-cluster.log
日志信息为Caused by: java.lang.IllegalStateException: failed to obtain node locks, tried [[/data/elk_data/my-elk-cluster]] with lock id [0]; maybe these locations are not writable or multiple nodes were started without increasing [node.max_local_storage_nodes] (was [1])?
解决方法为,找到配置文件,我的目录是
vim /var/log/elasticsearch/my-elk-cluster.log
添加下面代码到配置文件文章来源:https://www.toymoban.com/news/detail-518273.html
node.max_local_storage_nodes: 2
然后就可以启动成功了。
文章来源地址https://www.toymoban.com/news/detail-518273.html
到了这里,关于Caused by: java.lang.IllegalStateException: failed to obtain node locks, tri的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!