gpt4 book ai didi

elasticsearch - ElasticSearch 1.1.2无法正常启动

转载 作者:行者123 更新时间:2023-12-02 22:43:34 27 4
gpt4 key购买 nike

我正在为我的公司升级ElasticSearch。要开始此操作,我需要在运行OSX Sierra(10.12.6)的计算机上运行的旧版本(1.1.2)。我从公司的存储库中下载了elasticsearch@1.1.2,但是启动不正确。我得到这个:

$ brew services list
Name Status User Plist
elasticsearch@1.1.2 started pjscopeland /Users/pjscopeland/Library/LaunchAgents/homebrew.mxcl.elasticsearch@1.1.2.plist

...但是Homebrew的状态为“ started”为黄色,其余为绿色,如果我手动运行它,则会得到以下信息:
$ elasticsearch
Java HotSpot(TM) 64-Bit Server VM warning: Option UseParNewGC was deprecated in version 9.0 and will likely be removed in a future release.
Java HotSpot(TM) 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
Exception in thread "main" java.lang.ExceptionInInitializerError
at org.elasticsearch.bootstrap.Bootstrap.main(Bootstrap.java:190)
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:32)
Caused by: java.lang.UnsupportedOperationException: Boot class path mechanism is not supported
at java.management/sun.management.RuntimeImpl.getBootClassPath(RuntimeImpl.java:99)
at org.elasticsearch.monitor.jvm.JvmInfo.<clinit>(JvmInfo.java:77)
... 2 more

注意请记住,我的Java技能达到了我只能阅读的水平,但可能无法解决我可能需要更改的任何内容。

最佳答案

看起来您已经安装了Java 9:

Java HotSpot(TM) 64-Bit Server VM warning: Option UseParNewGC was deprecated in version 9.0 and will likely be removed in a future release.


尽管ElasticSearch不支持它。
根据 this matrix,从2.3到5.6的任何ES版本均不支持Java 9。未列出ES 1.x,因为不再受支持。
还有一个与logstash(ElasticSearch的组件)有关的 issue,具有类似的堆栈跟踪。
您发布的异常

Caused by: java.lang.UnsupportedOperationException: Boot class path mechanism is not supported


提示您的JVM出了问题。该异常发生在 RuntimeImpl类中。
我建议您检查生产机器上安装了Java的哪个版本,然后在您的机器上安装它。有关如何在Mac上管理不同版本的Java的技巧,您可以在 SO question中查找。

关于elasticsearch - ElasticSearch 1.1.2无法正常启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46636954/

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