gpt4 book ai didi

php - 在Windows上安装elasticsearch

转载 作者:行者123 更新时间:2023-12-03 01:37:02 26 4
gpt4 key购买 nike

这可能是很多问题的重复...

我正在尝试使用php在Windows上安装elasticsearch。
我按照以下步骤进行安装

  • 下载zip并将其解压缩到c:\ elasticsearch-6.3.2
  • 通过命令行
  • 运行。\ bin \ elasticsearch.bat
  • 通过命令行
  • 运行。\ bin \ elasticsearch.bat -Ecluster.name = my_cluster -Enode.name = node_1

    但是当我尝试通过浏览器访问此URL http://127.0.0.1:9200http://localhost:9200时,显示

    "This site can’t be reached"



    我试图通过命令行运行也喜欢
    curl -XGET localhost:9200

    我得到回应

    curl: (7) Failed to connect to localhost port 9200: Connection refused



    我用谷歌搜索上述错误,但得到的答案是centos或ubuntu而不是Windows。
    谁能帮忙,我是Elasticsearch的新手。

    下面是生成为elasticsearch.log的日志

    [2018-07-31T12:34:04,301][INFO ][o.e.n.Node ] [] initializing ... [2018-07-31T12:34:04,481][INFO ][o.e.e.NodeEnvironment ] [G_YkjaN] using [1] data paths, mounts [[Windows (C:)]], net usable_space [500.6mb], net total_space [100gb], types [NTFS] [2018-07-31T12:34:04,481][INFO ][o.e.e.NodeEnvironment
    ] [G_YkjaN] heap size [998.4mb], compressed ordinary object pointers [unknown] [2018-07-31T12:34:04,484][INFO ][o.e.n.Node ] [G_YkjaN] node name derived from node ID [G_YkjaN2T66OvWgjV9A6uQ]; set [node.name] to override [2018-07-31T12:34:04,484][INFO ][o.e.n.Node
    ] [G_YkjaN] version[6.3.2], pid[3576], build[default/zip/053779d/2018-07-20T05:20:23.451332Z], OS[Windows 8.1/6.3/x86], JVM[Oracle Corporation/Java HotSpot(TM) Client VM/1.8.0_25/25.25-b02] [2018-07-31T12:34:04,485][INFO ][o.e.n.Node
    ] [G_YkjaN] JVM arguments [-Xms1g, -Xmx1g, -XX:+UseConcMarkSweepGC, -XX:CMSInitiatingOccupancyFraction=75, -XX:+UseCMSInitiatingOccupancyOnly, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.nosys=true, -XX:-OmitStackTraceInFastThrow, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Djava.io.tmpdir=C:\Users\nagkatke\AppData\Local\Temp\elasticsearch, -XX:+HeapDumpOnOutOfMemoryError, -XX:HeapDumpPath=data, -XX:ErrorFile=logs/hs_err_pid%p.log, -XX:+PrintGCDetails, -XX:+PrintGCDateStamps, -XX:+PrintTenuringDistribution, -XX:+PrintGCApplicationStoppedTime, -Xloggc:logs/gc.log, -XX:+UseGCLogFileRotation, -XX:NumberOfGCLogFiles=32, -XX:GCLogFileSize=64m, -Delasticsearch, -Des.path.home=C:\elasticsearch-6.3.2, -Des.path.conf=C:\elasticsearch-6.3.2\config, -Des.distribution.flavor=default, -Des.distribution.type=zip] [2018-07-31T12:34:07,069][INFO ][o.e.p.PluginsService ] [G_YkjaN] loaded module [aggs-matrix-stats] [2018-07-31T12:34:07,070][INFO ][o.e.p.PluginsService ] [G_YkjaN] loaded module [analysis-common] [2018-07-31T12:34:07,070][INFO ][o.e.p.PluginsService ] [G_YkjaN] loaded module [ingest-common] [2018-07-31T12:34:07,070][INFO ][o.e.p.PluginsService ] [G_YkjaN] loaded module [lang-expression] [2018-07-31T12:34:07,071][INFO ][o.e.p.PluginsService ] [G_YkjaN] loaded module [lang-mustache] [2018-07-31T12:34:07,071][INFO ][o.e.p.PluginsService ] [G_YkjaN] loaded module [lang-painless] [2018-07-31T12:34:07,071][INFO ][o.e.p.PluginsService ] [G_YkjaN] loaded module [mapper-extras] [2018-07-31T12:34:07,073][INFO ][o.e.p.PluginsService ] [G_YkjaN] loaded module [parent-join] [2018-07-31T12:34:07,073][INFO ][o.e.p.PluginsService ] [G_YkjaN] loaded module [percolator] [2018-07-31T12:34:07,073][INFO ][o.e.p.PluginsService ] [G_YkjaN] loaded module [rank-eval] [2018-07-31T12:34:07,073][INFO ][o.e.p.PluginsService ] [G_YkjaN] loaded module [reindex] [2018-07-31T12:34:07,074][INFO ][o.e.p.PluginsService ] [G_YkjaN] loaded module [repository-url] [2018-07-31T12:34:07,074][INFO ][o.e.p.PluginsService ] [G_YkjaN] loaded module [transport-netty4] [2018-07-31T12:34:07,074][INFO ][o.e.p.PluginsService ] [G_YkjaN] loaded module [tribe] [2018-07-31T12:34:07,075][INFO ][o.e.p.PluginsService ] [G_YkjaN] loaded module [x-pack-core] [2018-07-31T12:34:07,075][INFO ][o.e.p.PluginsService ] [G_YkjaN] loaded module [x-pack-deprecation] [2018-07-31T12:34:07,075][INFO ][o.e.p.PluginsService ] [G_YkjaN] loaded module [x-pack-graph] [2018-07-31T12:34:07,076][INFO ][o.e.p.PluginsService ] [G_YkjaN] loaded module [x-pack-logstash] [2018-07-31T12:34:07,076][INFO ][o.e.p.PluginsService ] [G_YkjaN] loaded module [x-pack-ml] [2018-07-31T12:34:07,076][INFO ][o.e.p.PluginsService ] [G_YkjaN] loaded module [x-pack-monitoring] [2018-07-31T12:34:07,077][INFO ][o.e.p.PluginsService ] [G_YkjaN] loaded module [x-pack-rollup] [2018-07-31T12:34:07,078][INFO ][o.e.p.PluginsService ] [G_YkjaN] loaded module [x-pack-security] [2018-07-31T12:34:07,078][INFO ][o.e.p.PluginsService ] [G_YkjaN] loaded module [x-pack-sql] [2018-07-31T12:34:07,078][INFO ][o.e.p.PluginsService ] [G_YkjaN] loaded module [x-pack-upgrade] [2018-07-31T12:34:07,079][INFO ][o.e.p.PluginsService ] [G_YkjaN] loaded module [x-pack-watcher] [2018-07-31T12:34:07,080][INFO ][o.e.p.PluginsService ] [G_YkjaN] no plugins loaded [2018-07-31T12:34:11,043][INFO ][o.e.x.s.a.s.FileRolesStore] [G_YkjaN] parsed [0] roles from file [C:\elasticsearch-6.3.2\config\roles.yml] [2018-07-31T12:34:11,361][ERROR][o.e.b.Bootstrap ] Exception 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:102) ~[?:?] at org.elasticsearch.xpack.ml.MachineLearningFeatureSet.isRunningOnMlPlatform(MachineLearningFeatureSet.java:93) ~[?:?] at org.elasticsearch.xpack.ml.MachineLearning.createComponents(MachineLearning.java:370) ~[?:?] at org.elasticsearch.node.Node.lambda$new$7(Node.java:405) ~[elasticsearch-6.3.2.jar:6.3.2] at org.elasticsearch.node.Node$$Lambda$1401/33475076.apply(Unknown Source) ~[?:?] at java.util.stream.ReferencePipeline$7$1.accept(Unknown Source) ~[?:1.8.0_25] at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(Unknown Source) ~[?:1.8.0_25] at java.util.stream.AbstractPipeline.copyInto(Unknown Source) ~[?:1.8.0_25] at java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source) ~[?:1.8.0_25] at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(Unknown Source) ~[?:1.8.0_25] at java.util.stream.AbstractPipeline.evaluate(Unknown Source) ~[?:1.8.0_25] at java.util.stream.ReferencePipeline.collect(Unknown Source) ~[?:1.8.0_25] at org.elasticsearch.node.Node.(Node.java:408) ~[elasticsearch-6.3.2.jar:6.3.2] at org.elasticsearch.node.Node.(Node.java:252) ~[elasticsearch-6.3.2.jar:6.3.2] at org.elasticsearch.bootstrap.Bootstrap$5.(Bootstrap.java:213) ~[elasticsearch-6.3.2.jar:6.3.2] at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:213) ~[elasticsearch-6.3.2.jar:6.3.2] at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:326) [elasticsearch-6.3.2.jar:6.3.2] at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:136) [elasticsearch-6.3.2.jar:6.3.2] at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:127) [elasticsearch-6.3.2.jar:6.3.2] at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86) [elasticsearch-6.3.2.jar:6.3.2] at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124) [elasticsearch-cli-6.3.2.jar:6.3.2] at org.elasticsearch.cli.Command.main(Command.java:90) [elasticsearch-cli-6.3.2.jar:6.3.2] at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:93) [elasticsearch-6.3.2.jar:6.3.2] at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:86) [elasticsearch-6.3.2.jar:6.3.2] [2018-07-31T12:34:11,372][WARN ][o.e.b.ElasticsearchUncaughtExceptionHandler] [] 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:140) ~[elasticsearch-6.3.2.jar:6.3.2] at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:127) ~[elasticsearch-6.3.2.jar:6.3.2] at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86) ~[elasticsearch-6.3.2.jar:6.3.2] at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124) ~[elasticsearch-cli-6.3.2.jar:6.3.2] at org.elasticsearch.cli.Command.main(Command.java:90) ~[elasticsearch-cli-6.3.2.jar:6.3.2] at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:93) ~[elasticsearch-6.3.2.jar:6.3.2] at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:86) ~[elasticsearch-6.3.2.jar:6.3.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:102) ~[?:?] at org.elasticsearch.xpack.ml.MachineLearningFeatureSet.isRunningOnMlPlatform(MachineLearningFeatureSet.java:93) ~[?:?] at org.elasticsearch.xpack.ml.MachineLearning.createComponents(MachineLearning.java:370) ~[?:?] at org.elasticsearch.node.Node.lambda$new$7(Node.java:405) ~[elasticsearch-6.3.2.jar:6.3.2] at org.elasticsearch.node.Node$$Lambda$1401/33475076.apply(Unknown Source) ~[?:?] at java.util.stream.ReferencePipeline$7$1.accept(Unknown Source) ~[?:1.8.0_25] at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(Unknown Source) ~[?:1.8.0_25] at java.util.stream.AbstractPipeline.copyInto(Unknown Source) ~[?:1.8.0_25] at java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source) ~[?:1.8.0_25] at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(Unknown Source) ~[?:1.8.0_25] at java.util.stream.AbstractPipeline.evaluate(Unknown Source) ~[?:1.8.0_25] at java.util.stream.ReferencePipeline.collect(Unknown Source) ~[?:1.8.0_25] at org.elasticsearch.node.Node.(Node.java:408) ~[elasticsearch-6.3.2.jar:6.3.2] at org.elasticsearch.node.Node.(Node.java:252) ~[elasticsearch-6.3.2.jar:6.3.2] at org.elasticsearch.bootstrap.Bootstrap$5.(Bootstrap.java:213) ~[elasticsearch-6.3.2.jar:6.3.2] at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:213) ~[elasticsearch-6.3.2.jar:6.3.2] at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:326) ~[elasticsearch-6.3.2.jar:6.3.2] at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:136) ~[elasticsearch-6.3.2.jar:6.3.2] ... 6 more [2018-07-31T13:16:54,014][INFO ][o.e.n.Node ] [] initializing ... [2018-07-31T13:16:54,092][INFO ][o.e.e.NodeEnvironment ] [G_YkjaN] using [1] data paths, mounts [[Windows (C:)]], net usable_space [471.2mb], net total_space [100gb], types [NTFS] [2018-07-31T13:16:54,092][INFO ][o.e.e.NodeEnvironment
    ] [G_YkjaN] heap size [998.4mb], compressed ordinary object pointers [unknown] [2018-07-31T13:16:54,092][INFO ][o.e.n.Node ] [G_YkjaN] node name derived from node ID [G_YkjaN2T66OvWgjV9A6uQ]; set [node.name] to override [2018-07-31T13:16:54,092][INFO ][o.e.n.Node
    ] [G_YkjaN] version[6.3.2], pid[8796], build[default/zip/053779d/2018-07-20T05:20:23.451332Z], OS[Windows 8.1/6.3/x86], JVM[Oracle Corporation/Java HotSpot(TM) Client VM/1.8.0_25/25.25-b02] [2018-07-31T13:16:54,092][INFO ][o.e.n.Node
    ] [G_YkjaN] JVM arguments [-Xms1g, -Xmx1g, -XX:+UseConcMarkSweepGC, -XX:CMSInitiatingOccupancyFraction=75, -XX:+UseCMSInitiatingOccupancyOnly, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.nosys=true, -XX:-OmitStackTraceInFastThrow, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Djava.io.tmpdir=C:\Users\nagkatke\AppData\Local\Temp\elasticsearch, -XX:+HeapDumpOnOutOfMemoryError, -XX:HeapDumpPath=data, -XX:ErrorFile=logs/hs_err_pid%p.log, -XX:+PrintGCDetails, -XX:+PrintGCDateStamps, -XX:+PrintTenuringDistribution, -XX:+PrintGCApplicationStoppedTime, -Xloggc:logs/gc.log, -XX:+UseGCLogFileRotation, -XX:NumberOfGCLogFiles=32, -XX:GCLogFileSize=64m, -Delasticsearch, -Des.path.home=C:\elasticsearch-6.3.2, -Des.path.conf=C:\elasticsearch-6.3.2\config, -Des.distribution.flavor=default, -Des.distribution.type=zip] [2018-07-31T13:16:56,395][INFO ][o.e.p.PluginsService ] [G_YkjaN] loaded module [aggs-matrix-stats] [2018-07-31T13:16:56,395][INFO ][o.e.p.PluginsService ] [G_YkjaN] loaded module [analysis-common] [2018-07-31T13:16:56,395][INFO ][o.e.p.PluginsService ] [G_YkjaN] loaded module [ingest-common] [2018-07-31T13:16:56,395][INFO ][o.e.p.PluginsService ] [G_YkjaN] loaded module [lang-expression] [2018-07-31T13:16:56,395][INFO ][o.e.p.PluginsService ] [G_YkjaN] loaded module [lang-mustache] [2018-07-31T13:16:56,395][INFO ][o.e.p.PluginsService ] [G_YkjaN] loaded module [lang-painless] [2018-07-31T13:16:56,395][INFO ][o.e.p.PluginsService ] [G_YkjaN] loaded module [mapper-extras] [2018-07-31T13:16:56,395][INFO ][o.e.p.PluginsService ] [G_YkjaN] loaded module [parent-join] [2018-07-31T13:16:56,395][INFO ][o.e.p.PluginsService ] [G_YkjaN] loaded module [percolator] [2018-07-31T13:16:56,395][INFO ][o.e.p.PluginsService ] [G_YkjaN] loaded module [rank-eval] [2018-07-31T13:16:56,395][INFO ][o.e.p.PluginsService ] [G_YkjaN] loaded module [reindex] [2018-07-31T13:16:56,395][INFO ][o.e.p.PluginsService ] [G_YkjaN] loaded module [repository-url] [2018-07-31T13:16:56,395][INFO ][o.e.p.PluginsService ] [G_YkjaN] loaded module [transport-netty4] [2018-07-31T13:16:56,395][INFO ][o.e.p.PluginsService ] [G_YkjaN] loaded module [tribe] [2018-07-31T13:16:56,395][INFO ][o.e.p.PluginsService ] [G_YkjaN] loaded module [x-pack-core] [2018-07-31T13:16:56,395][INFO ][o.e.p.PluginsService ] [G_YkjaN] loaded module [x-pack-deprecation] [2018-07-31T13:16:56,395][INFO ][o.e.p.PluginsService ] [G_YkjaN] loaded module [x-pack-graph] [2018-07-31T13:16:56,395][INFO ][o.e.p.PluginsService ] [G_YkjaN] loaded module [x-pack-logstash] [2018-07-31T13:16:56,395][INFO ][o.e.p.PluginsService ] [G_YkjaN] loaded module [x-pack-ml] [2018-07-31T13:16:56,395][INFO ][o.e.p.PluginsService ] [G_YkjaN] loaded module [x-pack-monitoring] [2018-07-31T13:16:56,411][INFO ][o.e.p.PluginsService ] [G_YkjaN] loaded module [x-pack-rollup] [2018-07-31T13:16:56,411][INFO ][o.e.p.PluginsService ] [G_YkjaN] loaded module [x-pack-security] [2018-07-31T13:16:56,411][INFO ][o.e.p.PluginsService ] [G_YkjaN] loaded module [x-pack-sql] [2018-07-31T13:16:56,411][INFO ][o.e.p.PluginsService ] [G_YkjaN] loaded module [x-pack-upgrade] [2018-07-31T13:16:56,411][INFO ][o.e.p.PluginsService ] [G_YkjaN] loaded module [x-pack-watcher] [2018-07-31T13:16:56,411][INFO ][o.e.p.PluginsService ] [G_YkjaN] no plugins loaded [2018-07-31T13:17:00,453][INFO ][o.e.x.s.a.s.FileRolesStore] [G_YkjaN] parsed [0] roles from file [C:\elasticsearch-6.3.2\config\roles.yml] [2018-07-31T13:17:00,828][ERROR][o.e.b.Bootstrap ] Exception 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:102) ~[?:?] at org.elasticsearch.xpack.ml.MachineLearningFeatureSet.isRunningOnMlPlatform(MachineLearningFeatureSet.java:93) ~[?:?] at org.elasticsearch.xpack.ml.MachineLearning.createComponents(MachineLearning.java:370) ~[?:?] at org.elasticsearch.node.Node.lambda$new$7(Node.java:405) ~[elasticsearch-6.3.2.jar:6.3.2] at org.elasticsearch.node.Node$$Lambda$1401/26927529.apply(Unknown Source) ~[?:?] at java.util.stream.ReferencePipeline$7$1.accept(Unknown Source) ~[?:1.8.0_25] at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(Unknown Source) ~[?:1.8.0_25] at java.util.stream.AbstractPipeline.copyInto(Unknown Source) ~[?:1.8.0_25] at java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source) ~[?:1.8.0_25] at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(Unknown Source) ~[?:1.8.0_25] at java.util.stream.AbstractPipeline.evaluate(Unknown Source) ~[?:1.8.0_25] at java.util.stream.ReferencePipeline.collect(Unknown Source) ~[?:1.8.0_25] at org.elasticsearch.node.Node.(Node.java:408) ~[elasticsearch-6.3.2.jar:6.3.2] at org.elasticsearch.node.Node.(Node.java:252) ~[elasticsearch-6.3.2.jar:6.3.2] at org.elasticsearch.bootstrap.Bootstrap$5.(Bootstrap.java:213) ~[elasticsearch-6.3.2.jar:6.3.2] at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:213) ~[elasticsearch-6.3.2.jar:6.3.2] at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:326) [elasticsearch-6.3.2.jar:6.3.2] at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:136) [elasticsearch-6.3.2.jar:6.3.2] at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:127) [elasticsearch-6.3.2.jar:6.3.2] at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86) [elasticsearch-6.3.2.jar:6.3.2] at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124) [elasticsearch-cli-6.3.2.jar:6.3.2] at org.elasticsearch.cli.Command.main(Command.java:90) [elasticsearch-cli-6.3.2.jar:6.3.2] at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:93) [elasticsearch-6.3.2.jar:6.3.2] at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:86) [elasticsearch-6.3.2.jar:6.3.2] [2018-07-31T13:17:00,843][WARN ][o.e.b.ElasticsearchUncaughtExceptionHandler] [] 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:140) ~[elasticsearch-6.3.2.jar:6.3.2] at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:127) ~[elasticsearch-6.3.2.jar:6.3.2] at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86) ~[elasticsearch-6.3.2.jar:6.3.2] at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124) ~[elasticsearch-cli-6.3.2.jar:6.3.2] at org.elasticsearch.cli.Command.main(Command.java:90) ~[elasticsearch-cli-6.3.2.jar:6.3.2] at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:93) ~[elasticsearch-6.3.2.jar:6.3.2] at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:86) ~[elasticsearch-6.3.2.jar:6.3.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:102) ~[?:?] at org.elasticsearch.xpack.ml.MachineLearningFeatureSet.isRunningOnMlPlatform(MachineLearningFeatureSet.java:93) ~[?:?] at org.elasticsearch.xpack.ml.MachineLearning.createComponents(MachineLearning.java:370) ~[?:?] at org.elasticsearch.node.Node.lambda$new$7(Node.java:405) ~[elasticsearch-6.3.2.jar:6.3.2] at org.elasticsearch.node.Node$$Lambda$1401/26927529.apply(Unknown Source) ~[?:?] at java.util.stream.ReferencePipeline$7$1.accept(Unknown Source) ~[?:1.8.0_25] at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(Unknown Source) ~[?:1.8.0_25] at java.util.stream.AbstractPipeline.copyInto(Unknown Source) ~[?:1.8.0_25] at java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source) ~[?:1.8.0_25] at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(Unknown Source) ~[?:1.8.0_25] at java.util.stream.AbstractPipeline.evaluate(Unknown Source) ~[?:1.8.0_25] at java.util.stream.ReferencePipeline.collect(Unknown Source) ~[?:1.8.0_25] at org.elasticsearch.node.Node.(Node.java:408) ~[elasticsearch-6.3.2.jar:6.3.2] at org.elasticsearch.node.Node.(Node.java:252) ~[elasticsearch-6.3.2.jar:6.3.2] at org.elasticsearch.bootstrap.Bootstrap$5.(Bootstrap.java:213) ~[elasticsearch-6.3.2.jar:6.3.2] at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:213) ~[elasticsearch-6.3.2.jar:6.3.2] at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:326) ~[elasticsearch-6.3.2.jar:6.3.2] at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:136) ~[elasticsearch-6.3.2.jar:6.3.2] ... 6 more

    最佳答案

    根据日志中的错误消息:

    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



    您需要在 elasticsearch.yml配置文件中添加以下行,然后重新启动ES服务器:
    xpack.ml.enabled: false

    关于php - 在Windows上安装elasticsearch,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51607974/

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