Error after upgrading elasticsearch from 1.5.2 to 2.3.3 version

getting : java.lang.RuntimeException: don't run elasticsearch as root.
at org.elasticsearch.bootstrap.Bootstrap.initializeNatives(Bootstrap.java:93)
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:144)
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:270)
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:35)
error while restarting elasticsearch after upgrading version from 1.5.2 to 2.3.3

The message is clear.

Don't run Elasticsearch as root.

1 Like

Hi,

I tried that too

$ service elasticsearch restart
Restarting elasticsearch (via systemctl): Failed to restart elasticsearch.service: Interactive authentication required.
[FAILED]

not get worked...

Thanks
Gayathri

Can you please provide me the correct command for running without being root