Can not run elasticsearch as root


(Jayram) #1

Hello

i am working with elasticsearch 5.4

os : centos 7

when i run this command bash -x usr/share/elasticsearch/bin/elasticsearch

then it's give me error and i research that root user is disable to elasticsearch in the 5.4 what should be the solution


(Mark Walkom) #2

You should not run ES as root.


(Jayram) #3

then how i can run that ?

guide me

because of this error i can't add multiple nodes as well


(Jayram) #4

Hello i try with new user and working fine

but after that

curl -XGET http://localhost:9200/_cluster/health?pretty=true

this will give me nothing as output


(system) #5

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.