Failed to load settings from elasticsearch-5.1.2/config/elasticsearch.yml

Hello All,

I am trying to install elastic search 5.1.2 with a user login . I am facing following error :

" Failed to load settings from elasticsearch-5.1.2/config/elasticsearch.yml;
AccessDeniedException elasticsearch-5.1.2/config/elasticsearch.yml;
Likely root cause: java.nio.file.AccessDeniedException: elasticsearch-5.1.2/config/elasticsearch.yml "

I tried changing the user permission , added the username in sudoers list and granted all permissions. It is throwing the same error.

Could you please help me to solve this issue.

How did you install ES?

Hello Warkolm,

with curl i downloaded tar.gz file . i am actually upgrading from ES 2.X to 5.X . As i was getting issues , for the safer side i deleted ES 2.X.

Thank you