Elasticsearch won\'t start using ./bin/elasticsearch. It raises the following exception:
./bin/elasticsearch
- ElasticsearchIllegalStateException[Failed to obtain n
chown -R elasticsearch:elasticsearch /var/lib/elasticsearch
It directly shows it doesn't have permission to obtain a lock. So need to give permissions.