无法启动Elasticsearch(fileInputStream失败)

时间:2017-02-21 09:12:05

标签: elasticsearch configuration startup

我目前正在为我的公司为HPE ALM Octane建立一个测试环境。此应用程序使用Elasticsearch。现在我遇到了问题,我无法启动我的Elasticsearchserver而且我有点紧张了。)。

因为Octane适用于Elasticsearch版本2.4.0,我也被迫使用此版本。

我收到以下错误:

Error - Console Screenshot

elasticsearch.service - Elasticsearch
   Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service;
   enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Tue 2017-02-21 09:40:50 CET; 1h 9min ago
   Process: 954 ExecStart=/usr/share/elasticsearch/bin/elasticsearch     
   -Des.pidfile=${PID_DIR}/elasticsearch.pid 
   -Des.default.path.home=${ES_HOME} -Des.default.path.logs=${LOG_DIR} 
   -Des.default.path.data=${DATA_DIR} -Des.default.path.conf=${CONF_DIR} 
   (code=exited, status=1/FAILURE)
   Process: 949 ExecStartPre=/usr/share/elasticsearch/bin/elasticsearch-systemd-pre-exec (code=exited, status=0/SUCCESS)
   Main PID: 954 (code=exited, status=1/FAILURE)

   Feb 21 09:40:50 linux-rfw5 elasticsearch[954]: at java.nio.file.Files.newInputStream(Files.java:152)
   Feb 21 09:40:50 linux-rfw5 elasticsearch[954]: at org.elasticsearch.common.settings.Settings$Builder.loadFromPath(Settings.java:1067)
   Feb 21 09:40:50 linux-rfw5 elasticsearch[954]: at org.elasticsearch.node.internal.InternalSettingsPreparer.prepareEnvironment(InternalSettingsPreparer.java:88)
   Feb 21 09:40:50 linux-rfw5 elasticsearch[954]: at org.elasticsearch.bootstrap.Bootstrap.initialSettings(Bootstrap.java:218)
   Feb 21 09:40:50 linux-rfw5 elasticsearch[954]: at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:257)
   Feb 21 09:40:50 linux-rfw5 elasticsearch[954]: at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:35)
   Feb 21 09:40:50 linux-rfw5 elasticsearch[954]: Refer to the log for complete error details.
   Feb 21 09:40:50 linux-rfw5 systemd 1 : elasticsearch.service: Main process exited, code=exited, status=1/FAILURE
   Feb 21 09:40:50 linux-rfw5 systemd 1 : elasticsearch.service: Unit entered failed state.
   Feb 21 09:40:50 linux-rfw5 systemd 1 : elasticsearch.service: Failed with result 'exit-code'.

配置了绝对最小值,这是可能的。我的配置:

  1. elasticsearch.yml(/ etc / elasticsearch /) 1.1 cluster.name:octane_test 1.2 node.name:plasticNode 1.3 network.host:127.0.0.1(是localhost,因为我在同一台主机上运行辛烷服务器)
  2. http.port:9200 elasticsearch(/ etc / sysconfig /)     2.1 ES_HEAP_SIZE = 4g(4 GB是最大内存的50%)
  3. 感谢您的帮助;) 乔尔

0 个答案:

没有答案