elasticsearch start more than one nodes on the same data folder

来源:互联网 发布:淘宝李宁是假的吗 编辑:程序博客网 时间:2024/05/20 18:03
Caused by: java.lang.IllegalStateException: failed to obtain node locks, tried [[/elasticsearch-5.4.0/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])?

当我在开启多个elasticsearch 实例时,遇到上述异常,解决方法是:在 config/elasticsearch.yml文件中新增一个配置变量:

node.max_local_storage_nodes: 256  #replace 256 with another num that greater than 1 
阅读全文
0 0
原创粉丝点击