gpt4 book ai didi

elasticsearch - 无法在我的机器上启动 ElasticSearch,执行 elasticsearch.bat 时发生 StartupException

转载 作者:行者123 更新时间:2023-12-02 22:15:08 24 4
gpt4 key购买 nike

我需要在 elasticSearch 上工作,我已经从授权网站下载了 elasticsearch-6.7.2,但是在尝试启动 ElasticSearch 服务器和执行时 elasticsearch.bat文件,我收到以下错误:

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-6.7.2.jar:6.7.2] at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:150) ~[elasticsearch-6.7.2.jar:6.7.2] at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86) ~[elasticsearch-6.7.2.jar:6.7.2] at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124) ~[elasticsearch-cli-6.7.2.jar:6.7.2] at org.elasticsearch.cli.Command.main(Command.java:90) ~[elasticsearch-cli-6.7.2.jar:6.7.2] at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:116) ~[elasticsearch-6.7.2.jar:6.7.2] at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:93) ~[elasticsearch-6.7.2.jar:6.7.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 xpack.ml.enabled: false in elasticsearch.yml at org.elasticsearch.xpack.ml.MachineLearningFeatureSet.isRunningOnMlPlatform(MachineLearningFeatureSet.java:107) ~[?:?] at org.elasticsearch.xpack.ml.MachineLearningFeatureSet.isRunningOnMlPlatform(MachineLearningFeatureSet.java:98) ~[?:?] at org.elasticsearch.xpack.ml.MachineLearning.createComponents(MachineLearning.java:413) ~[?:?] at org.elasticsearch.node.Node.lambda$new$11(Node.java:472) ~[elasticsearch-6.7.2.jar:6.7.2] at java.util.stream.ReferencePipeline$7$1.accept(Unknown Source) ~[?:1.8.0_211] at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(Unknown Source) ~[?:1.8.0_211] at java.util.stream.AbstractPipeline.copyInto(Unknown Source) ~[?:1.8.0_211] at java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source) ~[?:1.8.0_211] at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(Unknown Source) ~[?:1.8.0_211] at java.util.stream.AbstractPipeline.evaluate(Unknown Source) ~[?:1.8.0_211] at java.util.stream.ReferencePipeline.collect(Unknown Source) ~[?:1.8.0_211] at org.elasticsearch.node.Node.(Node.java:475) ~[elasticsearch-6.7.2.jar:6.7.2] at org.elasticsearch.node.Node.(Node.java:266) ~[elasticsearch-6.7.2.jar:6.7.2] at org.elasticsearch.bootstrap.Bootstrap$5.(Bootstrap.java:212) ~[elasticsearch-6.7.2.jar:6.7.2] at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:212) ~[elasticsearch-6.7.2.jar:6.7.2] at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:333) ~[elasticsearch-6.7.2.jar:6.7.2] at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:159) ~[elasticsearch-6.7.2.jar:6.7.2] ... 6 more

最佳答案

进入 ElasticSearch 目录:
C:\elasticsearch-6.7.2\config
将以下条目放入您的 elasticsearch.yml :
xpack.ml.enabled: false

关于elasticsearch - 无法在我的机器上启动 ElasticSearch,执行 elasticsearch.bat 时发生 StartupException,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56126244/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com