1.启动时报错:无法打开java,因为无法验证开发者
vim elasticsearch 修改java配置(最好自己去下载对应的jdk,最开始我使用elasticsearch自带的jdk,但是还是报错)
#使用自己本地的jdk
export JAVA_HOME=/Users/xxx/software/jdk-13.0.1.jdk/Contents/Home/
export PATH=$JAVA_HOME/bin:$PATH
#添加jdk判断
if [ -x "$JAVA_HOME/bin/java" ]; then
JAVA="/Users/xxx/software/jdk-13.0.1.jdk/Contents/Home/bin/java"
else
JAVA=`which java`
fi
2.启动后提示:OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
修改jvm.options
把 -XX:+UseConcMarkSweepGC 修改为 -XX:+UseG1GC
3.启动后elasticsearch打印的日志中出现:org.elasticsearch.ElasticsearchException: Failure running machine learning native code. This could be due to running on an unsupported OS or distribution, missing OS libraries, or a problem with the temp directory. To bypass this problem by running Elasticsearch without machine learning functionality set [xpack.ml.enabled: false].
修改 elasticsearch.yml 添加 xpack.ml.enabled: false
4.kibana7.4.0设置中文显示
修改kibana.yml 的i18n.locale: "en" 为 i18n.locale: "zh-CN"