I'm preparing a Raspberry Pi 4 as a development environment, and I've hit a snag having installed and configured Java.
I've installed Elastic for Debian, which comes with Java 11.
I then appended "~/.bashrc" with:
export JAVA_HOME="/usr/lib/jvm/java-11-openjdk-armhf"
export PATH=$PATH:$JAVA_HOME/bin
However, after installing Elastic, I got:
ā elasticsearch.service - LSB: Starts elasticsearch Loaded: loaded (/etc/init.d/elasticsearch; generated) Active: active (exited) since Mon 2020-12-14 13:33:27 GMT; 1h 6min ago Docs: man:systemd-sysv-generator(8) Tasks: 0 (limit: 4915) CGroup: /system.slice/elasticsearch.service
Dec 14 13:33:27 raspberrypi systemd1: Starting LSB: Starts elasticsearch...
Dec 14 13:33:27 raspberrypi elasticsearch[1627]: [warning] /etc/init.d/elasticsearch: JVM flavor 'sun6' not understood
Dec 14 13:33:27 raspberrypi systemd1: Started LSB: Starts elastic
search.
I ran 'sudo journalctl --unit elasticsearch' and got:
Dec 14 13:33:22 raspberrypi systemd1: Stopping LSB: Starts elasticsearch...
Dec 14 13:33:22 raspberrypi elasticsearch[1592]: [warning] /etc/init.d/elasticsearch: JVM flavor 'sun6' not understood
Dec 14 13:33:22 raspberrypi systemd1: elasticsearch.service: Succeeded.
Dec 14 13:33:22 raspberrypi systemd1: Stopped LSB: Starts elasticsearch.
Dec 14 13:33:27 raspberrypi systemd1: Starting LSB: Starts elasticsearch...
Dec 14 13:33:27 raspberrypi elasticsearch[1627]: [warning] /etc/init.d/elasticsearch: JVM flavor 'sun6' not understood
Dec 14 13:33:27 raspberrypi systemd1: Started LSB: Starts elasticsearch.
Strange thing is, there's nothing in: cat var/log/elasticsearch
I'm assuming Elastic is struggling with the version of Java, but that's as far as my own DevOps takes me!