Exception in thread "main" java.lang.RuntimeException: don't run elasticsearch as root

Hi,
I'm using elasticsearch-2.1.1 in my linux red hat server(64 bit). When i'm trying to start my elasticsearch its thorough some error like this,

Exception in thread "main" 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:285)
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:35)
Refer to the log for complete error details.

Can anyone help to resolve it. I'm using server as root user

Hi,

I am also facing the same issue.

The error message says:

Exception in thread "main" java.lang.RuntimeException: don't run elasticsearch as root.

Don't run Elasticsearch as root, and then you'll be fine. :slight_smile:

1 Like