By executing the command: ./bin/elasticsearch I have this error:
<
[ERROR][o.e.b.Elasticsearch ] [wazuh-server] fatal exception while booting Elasticsearchjava.lang.RuntimeException: can not run elasticsearch as root
at org.elasticsearch.server@8.10.0/org.elasticsearch.bootstrap.Elasticsearch.initializeNatives(Elasticsearch.java:280)
at org.elasticsearch.server@8.10.0/org.elasticsearch.bootstrap.Elasticsearch.initPhase2(Elasticsearch.java:166)
at org.elasticsearch.server@8.10.0/org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:71)
See logs for more details.
ERROR: Elasticsearch did not exit normally - check the logs at /home/wazuh-user/elasticsearch-8.10.0/logs/elasticsearch.log
ERROR: Elasticsearch exited unexpectedly, with exit code 1. >
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.