I am really sorry but I am completely lost. I spent more than a day now to get Elastiscsearch running on an RPI but failed miserably. Goal is to have the whole ELK stack there at the end.
List item I installed a plain vanilla Rasbarian
List item Connected it to my WLAN with a fixed IP
List item Ran apt-get update and apt-get upgrade
List item Ran apt-get install elasticsearch
so far everything works fine. But no matter what I do in the config file, the service runs but does not bind to port 9200, nor do I have any logs in /var/log/elasticserach.
Where can I look for the reason of this? I am completely lost and I am aware that this is most probably just a newbie error
I'm sorry for the trouble you're having. Let me see if we can help. Can you share the config file? How are you starting Elasticsearch? How do you know the service is running?
No problem. I guess, the issue is with me, not ES.....
Let's start with the config file. I changed only this section in /etc/elasticsearch/elasticsearch.yml:
# Set both 'bind_host' and 'publish_host':
#
network.host: _global_
# Set a custom port for the node to node communication (9300 by default):
#
#transport.tcp.port: 9300
# Enable compression for all communication between nodes (disabled by default):
#
#transport.tcp.compress: true
# Set a custom port to listen for HTTP traffic:
#
http.port: 9200
# Set a custom allowed content length:
#
#http.max_content_length: 100mb
# Disable HTTP completely:
#
#http.enabled: false
On network.host, I kind of tried everything, including the internal IP address, localhost, global, site etc.
It's unusual that Elasticsearch would start and not put something in the logs.
Is there anything in the OS level logs, like /var/log/system.log or similar?
Have you set the JVM heap size appropriate for the Pi? The default is 2g and I suspect that's way too high for your Pi and you're running out of memory on startup? Maybe you could look at jvm.options and set the heap size appropriately? You should set it to half the available RAM on the Pi.
I see, you’re running an old version of Elasticsearch. To set the heap size on the version you’re on you should set the ES_HEAP_SIZE environment variable. And of course, upgrade to the latest if you can.
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.