Elasticsearch 7.9.X报错解决
1.点击elasticsearch.bat闪退情况
cmd到bin目录下,输入dir,查看具体情况
我的问题是jdk版本不对,ELS 7.9.X需要使用到jdk1.8的环境,检查Java环境变量是不是1.8
2.接着重新报错
Caused by: org.elasticsearch.ElasticsearchException: X-Pack is not supported and Machine Learning is not available for [windows-x86]; you can use the other X-Pack features (unsupported) by setting xpa
解决方法:编辑ElasticSearch-7.9.X\config\elasticsearch.yml文件,文件最后追加xpack.ml.enabled: false
。注意“:”号存在空格!