以下位置是否可写

以下位置是否可写

本文介绍了Elasticsearch,获取节点锁失败,以下位置是否可写的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Elasticsearch 不会开始使用 ./bin/elasticsearch.它引发以下异常:

- ElasticsearchIllegalStateException[获取节点锁失败,以下位置是否可写?:[/home/user1/elasticsearch-1.4.4/data/elasticsearch]

我检查了同一个位置的权限,该位置有 777 个权限并且归 user1 所有.

ls -al/home/user1/elasticsearch-1.4.4/data/elasticsearch
drwxrwxrwx 3 user1 wheel 4096 Mar 8 13:24 .drwxrwxrwx 3 user1 wheel 4096 Mar 8 13:00 ..drwxrwxrwx 52 user1 wheel 4096 Mar 8 13:51 节点

有什么问题?

尝试在没有 root 访问权限的情况下在 linux 上运行 elasticsearch 1.4.4.

解决方案

我有一个与 Elasticsearch 相关的孤立 Java 进程.杀死它解决了锁定问题.

ps 辅助 |grep 'java'kill -9 <PID>

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

- ElasticsearchIllegalStateException[Failed to obtain node lock, is the following location writable?: [/home/user1/elasticsearch-1.4.4/data/elasticsearch]

I checked the permissions on the same location and the location has 777 permissions on it and is owned by user1.

ls -al /home/user1/elasticsearch-1.4.4/data/elasticsearch

What is the problem?

Trying to run elasticsearch 1.4.4 on linux without root access.

解决方案

I had an orphaned Java process related to Elasticsearch. Killing it solved the lock issue.

ps aux | grep 'java'
kill -9 <PID>

这篇关于Elasticsearch,获取节点锁失败,以下位置是否可写的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-02 12:05