Running Elasticsearch 2.3 on CentOS 6.5, the exception is as follows:
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:270) at
Org.elasticsearch.bootstrap.Elasticsearch.main (elasticsearch.java:35)
refer to the log for complete error details .
The exception is described as not being able to run Elasticsearch with root permissions. The solution is to add parameters at run time:
Bin/elasticsearch-des.insecure.allow.root=true
or modify the Bin/elasticsearch, plus the es_java_opts attribute:
Es_java_opts= "-des.insecure.allow.root=true"
Restart Elasticsearch after saving.
Thank you for reading, I hope to help you, thank you for your support for this site!