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


(Hyeok Kim) #1

Hello,

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

https://www.elastic.co/guide/en/elasticsearch/reference/current/important-settings.html#path-settings

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.


(Thiago Souza) #2

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


(Hyeok Kim) #3

Thank you!

That is permission problem.

I have not enough to permission to these paths.