Description of the problem including expected versus actual behavior:
Elastic search is not starting. It gives me warning "org.elasticsearch.bootstrap.StartupException: java.lang.RuntimeException: can not run elasticsearch as root". But when I run without root, it gives me long list of errors; some of them are "java.io.FileNotFoundException: permission denied."
Steps to reproduce:
sudo ./elasticsearch
I have lowered the memory limits from config/jvm.options to 100-200mb. But doesn't work.
-Xms100m
-Xmx200m
Thank you for your prompt reply. I changed my config according to the "important settings" page; however ran into endless YAML parsing errors. Then commented out everything again as it was shipped with the .tar.gz. and it has started working.! No idea why. I will update here if I find the reason.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.