When I set multiple path on elasticsearch.yml, elasticsearch service occur error

Hello,

I'm following below page, "Important Elasticsearch configuration"

When I set multiple path on elasticsearch.yml, elasticsearch service occur error.

How to solve this problem ? What am I missing ?

if i set multiple path like this

path.data: [ /mnt/elasticsearch_1, /mnt/elasticsearch_2, /mnt/elasticsearch_3 ]

Input >> sudo -i service elasticsearch status
Output >> elasticsearch dead but subsys locked

Input >> curl -XGET 'localhost:9200
Output >> curl: (7) couldn't connect to host

if i set multiple path like this,

path.data: /mnt/elasticsearch_1, /mnt/elasticsearch_2, /mnt/elasticsearch_3

Input >> sudo -i service elasticsearch status
Output >> elasticsearch is stopped

Input >> curl -XGET 'localhost:9200
Output >> curl: (7) couldn't connect to host

if i set multiple path like this,

path:
data:

  • /mnt/elasticsearch_1
  • /mnt/elasticsearch_2
  • /mnt/elasticsearch_3

Input >> sudo -i service elasticsearch status
Output >> elasticsearch dead but pid file exists

Input >> curl -XGET 'localhost:9200
Output >> curl: (7) couldn't connect to host

Thanks for read.

ps1. I used Elasticsearch 6.1
ps2. I need to use multiple path 2~3, but i can use only default path.

Does the elasticsearch user has full read/write permissions to these paths?

Thank you!

That is permission problem.

I have not enough to permission to these paths.

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