Elasticsearch 7.16 installing error

Hi, I am trying to install Elasticsarch 7.16.1 on 3 nodes by following Install Elasticsearch from archive on Linux or MacOS | Elasticsearch Guide [7.16] | Elastic . The ES installation needs to be done on Linux.

However, when I start to run the Elasticsearch by running ./Elasticsearch -d -Ecluster.name=my_cluster -Enode.name=node_1

I always get

[root@e1-node1 bin]# uncaught exception in thread [main]
java.lang.RuntimeException: can not run elasticsearch as root
        at org.elasticsearch.bootstrap.Bootstrap.initializeNatives(Bootstrap.java:107)
        at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:183)
        at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:434)
        at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:166)
        at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:157)
        at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:77)
        at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:112)
        at org.elasticsearch.cli.Command.main(Command.java:77)
        at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:122)
        at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:80)
For complete error details, refer to the log at /root/elasticsearch-7.16.1/logs/my_cluster.log
2022-03-21 13:44:09,671428 UTC [6935] INFO  Main.cc@111 Parent process died - ML controller exiting

My java version

[root@e1-node1 ~]# java -version
openjdk version "1.8.0_262"
OpenJDK Runtime Environment (build 1.8.0_262-b10)
OpenJDK 64-Bit Server VM (build 25.262-b10, mixed mode)

Can anyone please help here .

Thanks in advance.

Regards
Kailas

Checking your log above, this message is shown:

Run this is a user and not as the superuser/root when starting Elasticsearch.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.