我试图在Windows的Bash上运行Elasticsearch 1.7.1。
这是我得到的错误:
user@SOME-PC:~/elasticsearch-1.7.1$ ./bin/elasticsearch
log4j:WARN No appenders could be found for logger (common).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
[2016-12-01 00:15:07,945][INFO ][node ] [Zach] version[1.7.1], pid[1719], build[b88f43f/2015-07-29T09:54:16Z]
[2016-12-01 00:15:07,946][INFO ][node ] [Zach] initializing ...
[2016-12-01 00:15:08,027][INFO ][plugins ] [Zach] loaded [], sites []
{1.7.1}: Initialization Failed ...
- ElasticsearchIllegalStateException[Failed to obtain node lock, is the following location writable?: [/home/user/elasticsearch-1.7.1/data/elasticsearch]]
IOException[failed to obtain lock on /home/user/elasticsearch-1.7.1/data/elasticsearch/nodes/49]
IOException[Mount point not found]
Java版本:
user@SOME-PC:~/elasticsearch-1.7.1$ java -version
java version "1.8.0_111"
Java(TM) SE Runtime Environment (build 1.8.0_111-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.111-b14, mixed mode)
Ubuntu版本:
user@SOME-PC:~/elasticsearch-1.7.1$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.5 LTS
Release: 14.04
Codename: trusty
有什么建议么?
最佳答案
为了访问您的节点,这似乎是一个权限问题。尝试按照此SO授予所有者许可。
chown -R elasticsearch:elasticsearch /data/elasticsearch/
您可能还想看看这个ticket。
关于windows - 在Windows的Bash上运行Elasticsearch 1.7.1的问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40900610/