I just installed elasticsearch 7.9.2 in my centos 7.8.2003. Whenever I run ./bin/elasticsearch it just returns "killed" along with a bunch of warnings. I have referred this for installation.
I have 2GB installed memory and anytime I get >700mb free
In my jvm options i have set -Xms512m -Xmx512m
Following is the output when I try to launch ./bin/elasticsearch future versions of Elasticsearch will require Java 11; your Java version from [/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.262.b10-0.el7_8.x86_64/jre] does not meet this requirement future versions of Elasticsearch will require Java 11; your Java version from [/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.262.b10-0.el7_8.x86_64/jre] does not meet this requirement Killed
No logs are generated. Any idea where else can I check for logs and what is wrong here?
Do you see by chance any output in dmesg. Also can you increase the heap to 1g to test if that is the culprit. And lastly, try not setting JAVA_HOME and use the built-in JDK that ships with Elasticsearch (that will also remove that message).
I have to use JAVA_HOME because other applications are using it. If there is any way I can force elastic to use its own JDK which comes with itself then please guide me to do that.
I have referred this for installation.
I did try 1g heap but I get the same output as before.
Nothing on dmesg either
Also I was wondering what is the minimum heap size required for elasticsearch to run?
Turns out you cannot run elasticsearch as root. I'm surprised nobody noticed these from my screenshots. Either people take it for granted that you are not running as root, or do not know about it.
I had to create a new VM with identical configuration and then install elasticsearch. Thereafter I got the error stack trace saying you cant run as root.
Now all I needed to do was to follow this to make it run.
Why this error did not show in the previous VM is still a mystery to me. Maybe someone can explain here.
I also need one more information. What is the min heap size required by elasticsearch? Is it always 50% of main memory?
Please don't post pictures of text, they are difficult to read, impossible to search and replicate (if it's code), and some people may not be even able to see them
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.