Elasticsearch-5.0.0& 5.0.1无法启动该服务

时间:2016-11-16 23:26:39

标签: elasticsearch elasticsearch-5

java_home

jvm.options:

-Xms20g
-Xmx20g
-Xss1m

installation screen

日志:

[2016-11-16 13:18:20] [info] [ 7892] Commons Daemon procrun (1.0.15.0 64-bit) started
[2016-11-16 13:18:20] [info] [ 7892] Starting service 'ES' ...
[2016-11-16 13:18:20] [warn] [ 7892] Failed to obtain service description
[2016-11-16 13:18:21] [error] [ 7892] Failed to start 'ES' service
[2016-11-16 13:18:21] [error] [ 7892] The data area passed to a system call is too small.
[2016-11-16 13:18:21] [info] [ 7892] Start service finished.
[2016-11-16 13:18:21] [error] [ 7892] Commons Daemon procrun failed with exit value: 5 (Failed to start service)
[2016-11-16 13:18:21] [error] [ 7892] The data area passed to a system call is too small.


The data area passed to a system call is too small.
Failed to start service

但elasticsearch.bat完美无缺

2 个答案:

答案 0 :(得分:0)

将-Xss1m添加到config文件夹中的文件jvm.options

答案 1 :(得分:0)

转到配置文件夹并打开elasticsearch.yml文件,然后执行以下更改。

取消注释cluster.name中的node.nameelasticsearch.yml,如下所示

cluster.name: ESCluster

node.name: ESNode

在jvm.options中更改堆大小

-Xms1g
-Xmx1g

转到bin文件夹,然后运行elasticsearch.bat Server Startup