windows - 在Windows的Bash上运行Elasticsearch 1.7.1的问题

标签 windows bash elasticsearch

我试图在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/

相关文章:

bash - Web Assembly emrun : command not found when running from batch script, 但在命令窗口中运行良好

python - 如何通过流从dynamodb推送数据

java - elasticsearch 6 ESIntegTestCase "codebase property already set"

elasticsearch - 如何汇总_score

c - 与 sscanf 一起使用的格式说明符 %n 不返回字符数

linux - 在 bash 脚本中组合 perl 命令

node.js - Node 找不到模块 ~/package.json (已关闭)

macos - sed: c 命令,只改变第一行,文本被删除

c++ - 是否有可能获得多播组中每个套接字的所有 sockaddr_in 地址的列表

windows - 为 Windows 制作热键的最简单方法是什么?