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(
at org.elasticsearch.bootstrap.Bootstrap.setup(
at org.elasticsearch.bootstrap.Bootstrap.init(
at org.elasticsearch.bootstrap.Elasticsearch.main(
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


I tried that too

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

not get worked...


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