Hi.
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
-
Stop ES
-
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
Docs: http://www.elastic.co
Main PID: 963 (code=exited, status=1/FAILURE)Mar 07 13:24:56 elk01 systemd[1]: Starting Elasticsearch...
Mar 07 13:24:57 elk01 systemd[1]: Started Elasticsearch.
Mar 07 13:24:57 elk01 elasticsearch[963]: Error: encountered environment variables that are no longer supported
Mar 07 13:24:57 elk01 elasticsearch[963]: Use jvm.options or ES_JAVA_OPTS to configure the JVM
Mar 07 13:24:57 elk01 elasticsearch[963]: 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[1]: elasticsearch.service: main process exited, code=exited, status=1/FAILURE
Mar 07 13:24:57 elk01 systemd[1]: Unit elasticsearch.service entered failed state.
Mar 07 13:24:57 elk01 systemd[1]: elasticsearch.service failed.
Drawing a blank here
Any help will be greatly appreciated!
Thanks.