Running elaticsearch with seperate user and group

Hello Team,

I have tried to run elasticsearch 6.4.0 with a seperate user and group. But it was not working fine.
Can you please help me out.

Regards,
Likhith.

See https://stackoverflow.com/questions/39940760/not-able-to-install-elasticsearch-as-different-user

It can't be root