HappyWorld
Well-known member
Hi
I'm trying to install & run elasticsearch 7 on almalinux 9, but i got an error
Then got error
My system still has plenty CPU & free memory.
Any help is appreciated.
Thank you.
I'm trying to install & run elasticsearch 7 on almalinux 9, but i got an error
Code:
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.17.23-x86_64.rpm
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.17.23-x86_64.rpm.sha512
shasum -a 512 -c elasticsearch-7.17.23-x86_64.rpm.sha512
sudo rpm --install elasticsearch-7.17.23-x86_64.rpm
sudo systemctl daemon-reload
sudo systemctl enable elasticsearch.service
sudo systemctl start elasticsearch.service
Then got error
Code:
Job for elasticsearch.service failed because the control process exited with error code.
See "systemctl status elasticsearch.service" and "journalctl -xeu elasticsearch.service" for details.
Code:
[root@qqq ~]# systemctl status elasticsearch.service
× elasticsearch.service - Elasticsearch
Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; enabled; preset: disabled)
Active: failed (Result: exit-code) since Sun 2024-09-01 06:09:13 UTC; 11s ago
Docs: https://www.elastic.co
Process: 59541 ExecStart=/usr/share/elasticsearch/bin/systemd-entrypoint -p ${PID_DIR}/elasticsearch.pid --quie>
Main PID: 59541 (code=exited, status=1/FAILURE)
CPU: 43.640s
Sep 01 06:09:13 qqq.com systemd-entrypoint[59541]: at org.elasticsearch.bootstrap.Bootstra>
Sep 01 06:09:13 qqq.com systemd-entrypoint[59541]: at org.elasticsearch.bootstrap.Bootstra>
Sep 01 06:09:13 qqq.com systemd-entrypoint[59541]: at org.elasticsearch.bootstrap.Bootstra>
Sep 01 06:09:13 qqq.com systemd-entrypoint[59541]: ... 7 more
Sep 01 06:09:13 qqq.com systemd-entrypoint[59541]: ERROR: Elasticsearch did not exit normally - ch>
Sep 01 06:09:13 qqq.com systemd[1]: elasticsearch.service: Main process exited, code=exited, statu>
Sep 01 06:09:13 qqq.com systemd[1]: elasticsearch.service: Failed with result 'exit-code'.
Sep 01 06:09:13 qqq.com systemd[1]: elasticsearch.service: Unit process 59783 (controller) remains>
Sep 01 06:09:13 qqq.com systemd[1]: Failed to start Elasticsearch.
Sep 01 06:09:13 qqq.com systemd[1]: elasticsearch.service: Consumed 43.639s CPU time.
Code:
[root@qqq ~]# journalctl -xeu elasticsearch.service
░░
░░ The process' exit code is 'exited' and its exit status is 1.
Sep 01 06:09:13 qqq.com systemd[1]: elasticsearch.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://access.redhat.com/support
░░
░░ The unit elasticsearch.service has entered the 'failed' state with result 'exit-code'.
Sep 01 06:09:13 qqq.com systemd[1]: elasticsearch.service: Unit process 59783 (controller) remains>
Sep 01 06:09:13 qqq.com systemd[1]: Failed to start Elasticsearch.
░░ Subject: A start job for unit elasticsearch.service has failed
░░ Defined-By: systemd
░░ Support: https://access.redhat.com/support
░░
░░ A start job for unit elasticsearch.service has finished with a failure.
░░
░░ The job identifier is 17335 and the job result is failed.
Sep 01 06:09:13 qqq.com systemd[1]: elasticsearch.service: Consumed 43.639s CPU time.
░░ Subject: Resources consumed by unit runtime
░░ Defined-By: systemd
░░ Support: https://access.redhat.com/support
░░
░░ The unit elasticsearch.service completed and consumed the indicated resources.
My system still has plenty CPU & free memory.
Any help is appreciated.
Thank you.