ElasticSearch on Raspberry Pi exited ElasticSearch on Raspberry Pi exited elasticsearch elasticsearch

ElasticSearch on Raspberry Pi exited


Ok, in the end I managed to get it running. I had to install java 8

sudo apt-get purge openjdk-7-jdksudo apt-get install openjdk-8-jdk

and set the memory maximum lower by opening /etc/elasticsearch/jvm.options and replacing

-Xms2G-Xmx2G

with

-Xms256M-Xmx256M

Restarting ES (sudo service elasticsearch start) solved it for me.

I hope this helps someone else as well. Regardless, I wish you a beautiful day!


At time of posting, installing through apt-get install elasticsearch on latest Raspbian release installs Elasticsearch 1.7 (which does not use /etc/elasticsearch/jvm.options)

Go to https://www.elastic.co/downloads/elasticsearch and get the link for the .deb package. Then install it with the following:

cd /home/piwget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.6.1.debdpkg -i elasticsearch-6.6.1.deb

Once you've done that you'll be able to edit /etc/elasticsearch/jvm.options and then start elasticsearch.