I get the same error with the latest version of Elasticsearch 5.6.3
Error: encountered environment variables that are no longer supported
Use jvm.options or ES_JAVA_OPTS to configure the JVM
ES_HEAP_SIZE=1024m: set -Xms1024m and -Xmx1024m in jvm.options or add "-
Xms1024m -Xmx1024m" to ES_JAVA_OPTS
I have tried to add ES_JAVA_OPTS="-Xms1024m -Xmx1024m in bin/elasticsearch but I get the same thing.
You need to read the error message carefully.
Solution 1: open $ES_HOME/config/jvm.options
and modify the lines starting with -Xms
and -Xmx
-Xms1024m
-Xmx1024m
Or Solution 2: use an environment variable before starting Elasticsearch
> export ES_JAVA_OPTS="-Xms1024m -Xmx1024m"
> bin/elasticsearch
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.