Elasticsearch启动错误:主要错误无法找到附加程序

时间:2019-10-18 06:46:55

标签: elasticsearch

启用并启动Elasticsearch时,我的系统是ubuntu 16.04

启用:

systemctl enable elasticsearch.service

Synchronizing state of elasticsearch.service with SysV init with /lib/systemd/systemd-sysv-install...
Executing /lib/systemd/systemd-sysv-install enable elasticsearch

开始:

systemctl enable elasticsearch.service

Job for elasticsearch.service failed because the control process exited with error code. See "systemctl status elasticsearch.service" and "journalctl -xe" for details.

显示日志:

systemctl status elasticsearch.service

.
.
.
    elasticsearch[15708]: 2019-10-18 14:20:57,120 main ERROR Unable to locate appender "index_indexing_slowlog_rolling" for logger config "in

    elasticsearch[15708]: 2019-10-18 14:20:57,120 main ERROR Unable to locate appender "audit_rolling" for logger config "org.elasticsearch.x

    elasticsearch[15708]: 2019-10-18 14:20:57,120 main ERROR Unable to locate appender "index_search_slowlog_rolling_old" for logger config "


    elasticsearch[15708]: 2019-10-18 14:20:57,120 main ERROR Unable to locate appender "index_search_slowlog_rolling" for logger config "inde

    elasticsearch[15708]: 2019-10-18 14:20:57,121 main ERROR Unable to locate appender "deprecation_rolling_old" for logger config "org.elast

     elasticsearch[15708]: 2019-10-18 14:20:57,121 main ERROR Unable to locate appender "deprecation_rolling" for logger config "org.elasticse
.
.
.

似乎某些路径设置错误?

以下是我的配置文件/etc/elasticsearch/elasticsearch.yml:

# Change Network
network.host: 0.0.0.0
# Change data path
path.data: /mnt/disks/elk/elasticsearch

 vim /etc/elasticsearch/jvm-options
 -Xms4g
 -Xmx4g

# Enable xpack.security
#discovery.seed_hosts: ["127.0.0.1"]
#discovery.type: "single-node"
#xpack.security.enabled: true
#xpack.security.transport.ssl.enabled: true
#xpack.license.self_generated.type: basic
~

我尝试删除elasticsearch并重新安装它,但仍然无法解决问题。

1 个答案:

答案 0 :(得分:0)

path.logs的值是什么?如果尚未配置,它将记录到默认日志文件夹。

确保日志目录具有elasticsearch用户的读写权限。

或者,检查/etc/sysconfig/elasticsearch并查看变量LOG_DIR的值(如果在此处而不是在elasticsearch.yml中进行配置)。