Future versions of Elasticsearch will require Java 11; your Java version from [/usr/java/jdk1.8.0_17
Elasticsearch启动Java环境错误报错提示如下es@MEPRDAPP01:/es/opt/elastic/elasticsearch-7.14.1> sh start.shwarning: usage of JAVA_HOME is deprecated, use ES_JAVA_HOMEFuture versions of Elasticsearch will require
·
Elasticsearch启动Java环境错误
报错提示如下
es@MEPRDAPP01:/es/opt/elastic/elasticsearch-7.14.1> sh start.sh
warning: usage of JAVA_HOME is deprecated, use ES_JAVA_HOME
Future versions of Elasticsearch will require Java 11; your Java version from [/usr/local/java/jre] does not meet this requirement. Consider switching to a distribution of Elasticsearch with a bundled JDK. If you are already using a distribution with a bundled JDK, ensure the JAVA_HOME environment variable is not set.
Linux环境使用的JDK
es@MEPRDAPP01:/es/opt/elastic/elasticsearch-7.14.1> java -version
java version "1.8.0_221"
Java(TM) SE Runtime Environment (build 1.8.0_221-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.221-b11, mixed mode)
修改启动脚本\bin\elasticsearch-env
,新增一行ES的JDK路径
# use elasticsearch jdk
ES_JAVA_HOME="/es/opt/elastic/elasticsearch-7.14.1/jdk"
更多推荐
已为社区贡献6条内容
所有评论(0)