要不要再翻翻文档呢?

elasticsearch [[node.max_local_storage_nodes] (was [1])

Elasticsearch | 作者 yimusidian | 发布于2022年03月16日 | 阅读数:4049

各位大佬,有没有遇到过这个错误呢
目前重启es 节点,就只有其中的一个错误节点在报这个错误,另外一个主节点,没有问题,这个错误过会就没了。
 
2022-03-14T11:50:43,020][ERROR][o.e.b.Bootstrap          ] [unknown] Exception
java.lang.IllegalStateException: failed to obtain node locks, tried [[/home/cbt/arkbase-2/data]] with lock id [0]; maybe these locations are not writable or multiple nodes were started without increasing [node.max_local_storage_nodes] (was [1])?
at org.elasticsearch.env.NodeEnvironment.<init>(NodeEnvironment.java:300) ~[elasticsearch-6.8.1.jar:6.8.1]
at org.elasticsearch.node.Node.<init>(Node.java:296) ~[elasticsearch-6.8.1.jar:6.8.1]
at org.elasticsearch.node.Node.<init>(Node.java:266) ~[elasticsearch-6.8.1.jar:6.8.1]
at org.elasticsearch.bootstrap.Bootstrap$5.<init>(Bootstrap.java:212) ~[elasticsearch-6.8.1.jar:6.8.1]
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:212) ~[elasticsearch-6.8.1.jar:6.8.1]
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:333) [elasticsearch-6.8.1.jar:6.8.1]
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:159) [elasticsearch-6.8.1.jar:6.8.1]
at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:150) [elasticsearch-6.8.1.jar:6.8.1]
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86) [elasticsearch-6.8.1.jar:6.8.1]
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124) [elasticsearch-cli-6.8.1.jar:6.8.1]
at org.elasticsearch.cli.Command.main(Command.java:90) [elasticsearch-cli-6.8.1.jar:6.8.1]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:116) [elasticsearch-6.8.1.jar:6.8.1]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:93) [elasticsearch-6.8.1.jar:6.8.1]
已邀请:

zgqing - 宁静致远

赞同来自:

单机多实例启动时需要改一下,默认一个es目录,单机只能启动一个实例

yimusidian - 90后IT男

赞同来自:

回归下,问题已解决,由于我系统中增加守护进程,在扩展ES结点时,未能正确设置扩展ES结点的进程ID,导致重启时出现了多个进程的情况。

要回复问题请先登录注册