I am trying to setup ES 5.0 on my machine. ES 2.2.0 was the prev. one which is working fine.
Now I am trying to upgrade it. During installation I am receiving this error.
Error: encountered environment variables that are no longer supported
Use jvm.options or ES_JAVA_OPTS to configure the JVM
ES_HEAP_SIZE=-Xms512m and -Xmx512m: set -Xms-Xms512m and -Xmx512m and -Xmx-Xms51
2m and -Xmx512m in jvm.options or add "-Xms-Xms512m and -Xmx512m -Xmx-Xms512m an
d -Xmx512m" to ES_JAVA_OPTS
@dadoonet is correct, but you should prefer jvm.options over using an environment variable. Note that your unsupported ES_HEAP_SIZE setting is not in the correct format to begin with though.
I am not able to figure out where is the ES_HEAP_SIZE option set. I tried looking into the Env. Variables, YML Files. But couldnt get any references. Also the jvm.options file also looks clear.
These are the steps I have followed inorder to setup ES 5.0.
You clearly configured this somewhere, I don't know where. You should start by checking your system environment variables and the service (service.bat manager).
you can try to find this variable. just open cmd and paste: set| findstr "HEAP"
If you will get the positive result than go to the PC->Properties->Advanced->Environment Variables->Scroll down and delete the "ES_HEAP_SIZE".
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.