elasticsearch -- win10 elasticsearch.bat闪退

win10 elasticsearch.bat闪退怎么搞的

1、在elasticsearch/bin目录下,按shift + 鼠标右键 打开 powershell窗口
2、输入bat文件名 如 elasticsearch.bat 回车运行,这时能看到错误提示,根据提示排查错误即可。
[2019-06-19T11:04:17,247][INFO ][o.e.x.s.a.s.FileRolesStore] [DESKTOP-23I1NCT] parsed [0] roles from file [E:\11\software\install\elasticsearch-7.1.1\config\roles.yml]
[2019-06-19T11:04:17,552][WARN ][o.e.b.ElasticsearchUncaughtExceptionHandler] [DESKTOP-23I1NCT] uncaught exception in thread [main]
org.elasticsearch.bootstrap.StartupException: 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 xpack.ml.enabled: false in elasticsearch.yml]
        at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:163) ~[elasticsearch-7.1.1.jar:7.1.1]
        at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:150) ~[elasticsearch-7.1.1.jar:7.1.1]
        at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86) ~[elasticsearch-7.1.1.jar:7.1.1]
        at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124) ~[elasticsearch-cli-7.1.1.jar:7.1.1]
        at org.elasticsearch.cli.Command.main(Command.java:90) ~[elasticsearch-cli-7.1.1.jar:7.1.1]
        at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:115) ~[elasticsearch-7.1.1.jar:7.1.1]
        at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:92) ~[elasticsearch-7.1.1.jar:7.1.1]
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 xpack.ml.enabled: false in elasticsearch.yml
        at org.elasticsearch.xpack.ml.MachineLearningFeatureSet.isRunningOnMlPlatform(MachineLearningFeatureSet.java:105) ~[?:?]
        at org.elasticsearch.xpack.ml.MachineLearningFeatureSet.isRunningOnMlPlatform(MachineLearningFeatureSet.java:96) ~[?:?]

解决方案:
you can use the other X-Pack features (unsupported) by setting xpack.ml.enabled: false in elasticsearch.yml

在config/elasticsearch.yml文件中加入

xpack.ml.enabled: false**

你可能感兴趣的:(Elasticsearch,Elasticsearch,windows,下闪退)