Starting to upgrade my System from 2.3.4 to 5.2.2 but now it won't start..
I get these error messages when I try to start it from the command 'sudo systemctl start elasticsearch':
It worked perfectly when I was on 2.3.4.
Procedure I took was
Removed all my plugins (license, marvel-agent, kopf and head)
Unloaded it and stopped the service.
I ran the update by d/loading the RPM and then running it. "wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.2.2.rpm"
systemctl status elasticsearch -l
● elasticsearch.service - Elasticsearch
Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Tue 2017-03-07 13:24:57 AEDT; 3min 23s ago
Main PID: 963 (code=exited, status=1/FAILURE)
Mar 07 13:24:56 elk01 systemd: Starting Elasticsearch...
Mar 07 13:24:57 elk01 systemd: Started Elasticsearch.
Mar 07 13:24:57 elk01 elasticsearch: Error: encountered environment variables that are no longer supported
Mar 07 13:24:57 elk01 elasticsearch: Use jvm.options or ES_JAVA_OPTS to configure the JVM
Mar 07 13:24:57 elk01 elasticsearch: ES_HEAP_SIZE=4g: set -Xms4g and -Xmx4g in jvm.options or add "-Xms4g -Xmx4g" to ES_JAVA_OPTS
Mar 07 13:24:57 elk01 systemd: elasticsearch.service: main process exited, code=exited, status=1/FAILURE
Mar 07 13:24:57 elk01 systemd: Unit elasticsearch.service entered failed state.
Mar 07 13:24:57 elk01 systemd: elasticsearch.service failed.
Drawing a blank here
Any help will be greatly appreciated!