I am trying to run Elasticsearch 2.1.1 in my Linux machine which I am the root user of it.
When I tried to execute the Elasticsearch.I am getting the following error
There are two workarounds to resolve this issue :
Solution 1: download zip file n unzip then start by following command
bin/elasticsearch -Des.insecure.allow.root=true -d
Solution 2:
vi bin/elasticsearch
Add property to allow root to run two instance:
ES_JAVA_OPTS="-Des.insecure.allow.root=true"
Save and close. You can start by root now.