最近在部署elasticsearch-7.3.1时遇到如下问题
org.elasticsearch.bootstrap.StartupException: 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].]
关键词:xpack.ml.enabled: false
进入config目录下在elasticsearch.yml
添加一条配置:
xpack.ml.enabled: false
问题解决,正常访问。这个错误是因为在Centos中运行了Macos下的es安装包,换成linux的包,正常启动。