es启动时报错

来源:7-2 数据可视化组件kibana的安装和在elasticsearch基本的增删改查

慕勒1399825

2020-08-08

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回答

大壮老师

2020-08-09

1、参考git仓库中elasticsearch配置

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

0
3
慕勒1399825
回复
大壮老师
确实是ik分词器的问题
2020-08-30
共3条回复

慕勒1399825

提问者

2020-08-16

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

//img.mukewang.com/szimg/5f38aaf608093e1b16000823.jpg

//img.mukewang.com/szimg/5f38aafc0842623116000827.jpg

//img.mukewang.com/szimg/5f38ab05081a5fdd16000827.jpg

//img.mukewang.com/szimg/5f38ab0c0870dd2016000561.jpg

请老师看一下

0
0

移动端Python爬虫实战 数据抓取+数据可视化

从App数据抓取到数据可视化,全流程讲解

1831 学习 · 1003 问题

查看课程