Run Elasticsearch 2.3 on CentOS 6.5 with the following exceptions:
ExceptioninchThread"Main"Java.lang.RuntimeException:don ' tRunElasticsearch asRoot. atOrg.elasticsearch.bootstrap.Bootstrap.initializeNatives (Bootstrap.java: the) atOrg.elasticsearch.bootstrap.Bootstrap.setup (Bootstrap.java:144) atOrg.elasticsearch.bootstrap.Bootstrap.init (Bootstrap.java: the) atOrg.elasticsearch.bootstrap.Elasticsearch.main (Elasticsearch.java: *) Refer to the Log forCompleteErrorDetails.
The exception is described as unable to run Elasticsearch with root privileges. The workaround is to add parameters at run time:
bin/elasticsearch -Des.insecure.allow.root=true
or modify Bin/elasticsearch, plus the Es_java_opts property:
ES_JAVA_OPTS="-Des.insecure.allow.root=true"
Restart Elasticsearch after saving.
Troubleshooting Linux under Root run Elasticsearch exception