Problem elastic search not running

I have a problem when rainning elastic search

Caused by: java.lang.IllegalStateException: failed to obtain node locks, tried 
[[/usr/share/elasticsearch/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.3.jar:6.8.3]
at org.elasticsearch.node.Node.<init>(Node.java:296) ~[elastic

You have elasticsearch already running

Yes i have elasticsearch running

So what is the problem?

Delete the file inside /usr/share/elasticsearch/data for each nodes and reboot
Then restart the service again.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.