绊脚石乃是进身之阶。

Elasticsearch 启动报错!!!!

Elasticsearch | 作者 dongguanhua | 发布于2018年08月09日 | 阅读数:8072

系统:Centos7.3
elasticsearch: yum  5.6.10
故障现象:yum 安装完成后,使用root systemct start 启动成功,但是修改/etc/elasticsearch.yaml 配置文件中的path.data 和 path.logs 所指向的目录后,启动失败!
报错如下:
 elasticsearch.service - Elasticsearch
   Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; disabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Thu 2018-08-09 21:43:23 CST; 23s ago
     Docs: http://www.elastic.co
  Process: 30152 ExecStart=/usr/share/elasticsearch/bin/elasticsearch -p ${PID_DIR}/elasticsearch.pid --quiet -Edefault.path.logs=${LOG_DIR} -Edefault.path.data=${DATA_DIR} -Edefault.path.conf=${CONF_DIR} (code=exited, status=1/FAILURE)
  Process: 30150 ExecStartPre=/usr/share/elasticsearch/bin/elasticsearch-systemd-pre-exec (code=exited, status=0/SUCCESS)
 Main PID: 30152 (code=exited, status=1/FAILURE)

Aug 09 21:43:23 10921114-elklogserver elasticsearch[30152]: 2018-08-09 21:43:23,068 main ERROR Null object returned for RollingFile in Appenders.
Aug 09 21:43:23 10921114-elklogserver elasticsearch[30152]: 2018-08-09 21:43:23,068 main ERROR Null object returned for RollingFile in Appenders.
Aug 09 21:43:23 10921114-elklogserver elasticsearch[30152]: 2018-08-09 21:43:23,069 main ERROR Null object returned for RollingFile in Appenders.
Aug 09 21:43:23 10921114-elklogserver elasticsearch[30152]: 2018-08-09 21:43:23,069 main ERROR Unable to locate appender "rolling" for logger config "root"
Aug 09 21:43:23 10921114-elklogserver elasticsearch[30152]: 2018-08-09 21:43:23,069 main ERROR Unable to locate appender "index_indexing_slowlog_rolling" for logger config "index.indexing.slowlog.index"
Aug 09 21:43:23 10921114-elklogserver elasticsearch[30152]: 2018-08-09 21:43:23,069 main ERROR Unable to locate appender "index_search_slowlog_rolling" for logger config "index.search.slowlog"
Aug 09 21:43:23 10921114-elklogserver elasticsearch[30152]: 2018-08-09 21:43:23,070 main ERROR Unable to locate appender "deprecation_rolling" for logger config "org.elasticsearch.deprecation"
Aug 09 21:43:23 10921114-elklogserver systemd[1]: elasticsearch.service: main process exited, code=exited, status=1/FAILURE
Aug 09 21:43:23 10921114-elklogserver systemd[1]: Unit elasticsearch.service entered failed state.
Aug 09 21:43:23 10921114-elklogserver systemd[1]: elasticsearch.service failed.
 
初次接触这个软件,查了不少文档也没能解决,跪求大神帮忙!~
已邀请:

laoyang360 - [死磕Elasitcsearch]知识星球地址:http://t.cn/RmwM3N9;微信公众号:铭毅天下; 博客:https://elastic.blog.csdn.net

赞同来自:

1.安全原因,不建议使用root账号。
2.新建立个elasticsearch账号,对应的路径+文件都 chwon +R elasticsearch:elasticsearch一下。
成功启动!

zqc0512 - andy zhou

赞同来自:

服务配置的时候好像有个运行用户啊,你是什么方式安装的?
建议 用.tar.gz解压方式安装。
 

fran

赞同来自:

“配置文件中的path.data 和 path.logs 所指向的目录后” 将这两个目录授权给 elasticsearch 用户

要回复问题请先登录注册