请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

es启动时报错

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.service - Elasticsearch
Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; disabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sat 2020-08-08 21:27:51 CST; 23s ago
Docs: https://www.elastic.co
Process: 20959 ExecStart=/usr/share/elasticsearch/bin/systemd-entrypoint -p ${PID_DIR}/elasticsearch.pid --quiet (
Main PID: 20959 (code=exited, status=1/FAILURE)

8月 08 21:27:51 ubvm systemd-entrypoint[20959]: at org.elasticsearch.bootstrap.Elasticsearch.execute(Elastic
8月 08 21:27:51 ubvm systemd-entrypoint[20959]: at org.elasticsearch.cli.EnvironmentAwareCommand.execute(Env
8月 08 21:27:51 ubvm systemd-entrypoint[20959]: at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Co
8月 08 21:27:51 ubvm systemd-entrypoint[20959]: at org.elasticsearch.cli.Command.main(Command.java:90)
8月 08 21:27:51 ubvm systemd-entrypoint[20959]: at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsea
8月 08 21:27:51 ubvm systemd-entrypoint[20959]: at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsea
8月 08 21:27:51 ubvm systemd-entrypoint[20959]: For complete error details, refer to the log at /var/log/elasticsear
8月 08 21:27:51 ubvm systemd[1]: elasticsearch.service: Main process exited, code=exited, status=1/FAILURE
8月 08 21:27:51 ubvm systemd[1]: elasticsearch.service: Failed with result ‘exit-code’.
8月 08 21:27:51 ubvm systemd[1]: Failed to start Elasticsearch.
…skipping…
● elasticsearch.service - Elasticsearch
Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; disabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sat 2020-08-08 21:27:51 CST; 23s ago
Docs: https://www.elastic.co
Process: 20959 ExecStart=/usr/share/elasticsearch/bin/systemd-entrypoint -p ${PID_DIR}/elasticsearch.pid --quiet (
Main PID: 20959 (code=exited, status=1/FAILURE)

8月 08 21:27:51 ubvm systemd-entrypoint[20959]: at org.elasticsearch.bootstrap.Elasticsearch.execute(Elastic
8月 08 21:27:51 ubvm systemd-entrypoint[20959]: at org.elasticsearch.cli.EnvironmentAwareCommand.execute(Env
8月 08 21:27:51 ubvm systemd-entrypoint[20959]: at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Co
8月 08 21:27:51 ubvm systemd-entrypoint[20959]: at org.elasticsearch.cli.Command.main(Command.java:90)
8月 08 21:27:51 ubvm systemd-entrypoint[20959]: at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsea
8月 08 21:27:51 ubvm systemd-entrypoint[20959]: at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsea
8月 08 21:27:51 ubvm systemd-entrypoint[20959]: For complete error details, refer to the log at /var/log/elasticsear
8月 08 21:27:51 ubvm systemd[1]: elasticsearch.service: Main process exited, code=exited, status=1/FAILURE
8月 08 21:27:51 ubvm systemd[1]: elasticsearch.service: Failed with result ‘exit-code’.
8月 08 21:27:51 ubvm systemd[1]: Failed to start Elasticsearch

正在回答

2回答

1、参考git仓库中elasticsearch配置

2、查看/var/log/elasticsearh日志,看一下到底是哪里报错

0 回复 有任何疑惑可以回复我~
  • 提问者 慕勒1399825 #1
    好像是因为Could not find plugin class [org.elasticsearch.plugin.analysis.ik.AnalysisIkPlugin]
    回复 有任何疑惑可以回复我~ 2020-08-16 11:44:44
  • 大壮老师 回复 提问者 慕勒1399825 #2
    看着是ik插件安装失败造成的无法启动
    回复 有任何疑惑可以回复我~ 2020-08-30 16:32:34
  • 提问者 慕勒1399825 回复 大壮老师 #3
    确实是ik分词器的问题
    回复 有任何疑惑可以回复我~ 2020-08-30 22:20:07
提问者 慕勒1399825 2020-08-16 11:44:47

https://img1.sycdn.imooc.com/szimg/5f38aaee088c0ad816000827.jpg

https://img1.sycdn.imooc.com//szimg/5f38aaf608093e1b16000823.jpg

https://img1.sycdn.imooc.com//szimg/5f38aafc0842623116000827.jpg

https://img1.sycdn.imooc.com//szimg/5f38ab05081a5fdd16000827.jpg

https://img1.sycdn.imooc.com//szimg/5f38ab0c0870dd2016000561.jpg

请老师看一下

0 回复 有任何疑惑可以回复我~

相似问题

登录后可查看更多问答,登录/注册

问题已解决,确定采纳
还有疑问,暂不采纳
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号