I am not able to start the elasticsearch service, I am getting the following errors. I could find many discussions with the same error but didn't find solution in any of them.
Below are the logs, can anyone please provide a solution for this?
localhost:~ # systemctl status elasticsearch
● elasticsearch.service - Elasticsearch
Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Fri 2021-09-17 17:19:54 IST; 11s ago
Docs: https://www.elastic.co
Process: 2374 ExecStart=/usr/share/elasticsearch/bin/systemd-entrypoint -p ${PID_DIR}/elasticsearch.pid --quiet (code=exited, status=1/FAILURE)
Main PID: 2374 (code=exited, status=1/FAILURE)
Sep 17 17:19:54 localhost systemd-entrypoint[2374]: at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:75)
Sep 17 17:19:54 localhost systemd-entrypoint[2374]: at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:116)
Sep 17 17:19:54 localhost systemd-entrypoint[2374]: at org.elasticsearch.cli.Command.main(Command.java:79)
Sep 17 17:19:54 localhost systemd-entrypoint[2374]: at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:115)
Sep 17 17:19:54 localhost systemd-entrypoint[2374]: at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:81)
Sep 17 17:19:54 localhost systemd-entrypoint[2374]: For complete error details, refer to the log at /var/log/elasticsearch/Elastic_Search.log
Sep 17 17:19:54 localhost systemd[1]: elasticsearch.service: Main process exited, code=exited, status=1/FAILURE
Sep 17 17:19:54 localhost systemd[1]: Failed to start Elasticsearch.
Sep 17 17:19:54 localhost systemd[1]: elasticsearch.service: Unit entered failed state.
Sep 17 17:19:54 localhost systemd[1]: elasticsearch.service: Failed with result 'exit-code'.
localhost:~ # sudo tail -f /var/log/elasticsearch/Elastic_Search.log
at org.elasticsearch.xpack.security.Security.lambda$getHttpTransports$25(Security.java:1145) ~[?:?]
at org.elasticsearch.node.Node.newHttpTransport(Node.java:1255) ~[elasticsearch-7.14.1.jar:7.14.1]
at org.elasticsearch.node.Node.<init>(Node.java:652) ~[elasticsearch-7.14.1.jar:7.14.1]
at org.elasticsearch.node.Node.<init>(Node.java:281) ~[elasticsearch-7.14.1.jar:7.14.1]
at org.elasticsearch.bootstrap.Bootstrap$5.<init>(Bootstrap.java:219) ~[elasticsearch-7.14.1.jar:7.14.1]
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:219) ~[elasticsearch-7.14.1.jar:7.14.1]
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:399) ~[elasticsearch-7.14.1.jar:7.14.1]
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:159) ~[elasticsearch-7.14.1.jar:7.14.1]
... 6 more
[2021-09-17T17:19:54,118][INFO ][o.e.x.m.p.NativeController] [node-1] Native controller process has stopped - no new native processes can be started
^C