Elasticsearch无法启动并且没有日志

时间:2019-01-11 11:28:46

标签: elasticsearch

我已经尝试启动ES了几个小时,但似乎无法这样做。

命令sudo service elasticsearch status输出:

elasticsearch.service - Elasticsearch
   Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since ven. 2019-01-11 12:22:33 CET; 5min ago
     Docs: http://www.elastic.co
  Process: 16713 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.confi Main PID: 16713 (code=exited, status=1/FAILURE)

janv. 11 12:22:33 glamuse systemd[1]: Started Elasticsearch.
janv. 11 12:22:33 glamuse systemd[1]: elasticsearch.service: Main process exited, code=exited, status=1/FAILURE
janv. 11 12:22:33 glamuse systemd[1]: elasticsearch.service: Unit entered failed state.
janv. 11 12:22:33 glamuse systemd[1]: elasticsearch.service: Failed with result 'exit-code'.

我增加了内存,并做了所有可以在Internet上找到的修复程序,但是我似乎无法弄清到底是怎么回事,今天甚至没有生成任何日志...所以我没有甚至还可以找到错误的根源。

我正在使用ES版本1.7.2(是的,它已经很旧了,但这应该不会有问题,因为它可以正常工作,而且我不能升级,因为我的Elastica还是会使用该版本的...)

我正在使用无业游民的机器,所以它是基于Unix的系统。

我的配置如下(删除了所有无用的注释):

index.number_of_shards: 10
index.number_of_replicas: 1

bootstrap.mlockall: true

network.bind_host: 0
network.host: 0.0.0.0

indices.recovery.max_bytes_per_sec: 200mb
indices.store.throttle.max_bytes_per_sec : 200mb

script.engine.groovy.inline.search: on
script.engine.groovy.inline.aggs: on
script.engine.groovy.inline.update: on

index.query.bool.max_clause_count: 100000

我也有这个conf:

ES_HEAP_SIZE=4g
MAX_OPEN_FILES=65535
MAX_LOCKED_MEMORY=unlimited
START_DAEMON=true
ES_USER=elasticsearch
ES_GROUP=elasticsearch
LOG_DIR=/var/log/elasticsearch
DATA_DIR=/var/lib/elasticsearch
WORK_DIR=/tmp/elasticsearch
CONF_DIR=/etc/elasticsearch
CONF_FILE=/etc/elasticsearch/elasticsearch.yml
RESTART_ON_UPGRADE=true

有什么主意我该如何调试呢?

0 个答案:

没有答案
相关问题