【问题标题】:Problems running Elasticsearch 1.7.1 on Bash for Windows在 Bash for Windows 上运行 Elasticsearch 1.7.1 时出现问题
【发布时间】:2016-12-01 12:51:26
【问题描述】:

我正在尝试在 Bash for Windows 上运行 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

有什么建议吗?

【问题讨论】:

  • 来吧伙计们,至少告诉你为什么投反对票!

标签: windows bash elasticsearch


【解决方案1】:

这似乎是一个权限问题,以便访问您的节点。尝试按照SO 向所有者授予权限。

chown -R elasticsearch:elasticsearch /data/elasticsearch/

您可能还想看看这个ticket

【讨论】:

  • 谢谢。我看到了你之前提到的链接,但问题是我没有弹性搜索用户。不确定它是在什么时候创建的。我应该自己添加吗?
  • @SM79 是的,您必须添加权限。
猜你喜欢
  • 2016-09-26
  • 1970-01-01
  • 2022-09-16
  • 1970-01-01
  • 2018-02-02
  • 1970-01-01
  • 1970-01-01
  • 2012-09-15
  • 2021-03-26
相关资源
最近更新 更多