Elasticsearch won\'t start using ./bin/elasticsearch. It raises the following exception:
./bin/elasticsearch
- ElasticsearchIllegalStateException[Failed to obtain n
In my situation I had wrong permissions on the ES dir folder. Setting correct owner solved it.
# change owner chown -R elasticsearch:elasticsearch /data/elasticsearch/ # to validate ls /data/elasticsearch/ -la # prints # drwxr-xr-x 2 elasticsearch elasticsearch 4096 Apr 30 14:54 CLUSTER_NAME