Elasticsearch, Failed to obtain node lock, is the following location writable

后端 未结 13 2340
予麋鹿
予麋鹿 2020-12-05 12:45

Elasticsearch won\'t start using ./bin/elasticsearch. It raises the following exception:

- ElasticsearchIllegalStateException[Failed to obtain n         


        
13条回答
  •  無奈伤痛
    2020-12-05 13:17

    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
    

提交回复
热议问题