最近在部署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的包,正常启动。
![解决:Elasticsearch without machine learning functionality set [xpack.ml.enabled: false] 解决:Elasticsearch without machine learning functionality set [xpack.ml.enabled: false]](https://public.file.whatled.com/2019/09/2019091110481033.png)
![解决:Elasticsearch without machine learning functionality set [xpack.ml.enabled: false] 解决:Elasticsearch without machine learning functionality set [xpack.ml.enabled: false]](https://public.file.whatled.com/2019/09/2019091110483721.png)
