Problems with Java and Elasticsearch: JVM flavor 'sun6' not understood

Hello!

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 from the official documentation here on Elastic for Debian.

However, after installing Elastic, I got:

● elasticsearch.service - LSB: Starts elasticsearch
Loaded: loaded (/etc/init.d/elasticsearch; generated)
Active: active (exited) since Sun 2020-12-13 17:40:38 GMT; 12min ago
Docs: man:systemd-sysv-generator(8)
Tasks: 0 (limit: 4915)
CGroup: /system.slice/elasticsearch.service
Dec 13 17:40:38 raspberrypi systemd[1]: Starting LSB: Starts elasticsearch...
Dec 13 17:40:38 raspberrypi elasticsearch[8795]: [warning] /etc/init.d/elasticsearch: JVM flavor 'sun6' not understood
Dec 13 17:40:38 raspberrypi systemd[1]: Started LSB: Starts elasticsearch.

I ran: "sudo journalctl --unit elasticsearch" and got:

Dec 13 17:40:38 raspberrypi systemd[1]: Starting LSB: Starts elasticsearch...
Dec 13 17:40:38 raspberrypi elasticsearch[8795]: [warning] /etc/init.d/elasticsearch: JVM flavor 'sun6' not understood
Dec 13 17:40:38 raspberrypi systemd[1]: 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!

When I run the command: ./bin/elasticsearch I get:

Unrecognized VM option 'Use.ParNewGC'

Error: Could not create the Java Virtual Machine.

Error: A fatal exception has occurred. Program will exit

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.