gpt4 book ai didi

elasticsearch - Brew Elasticsearch失败

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

昨天通过Brew现在升级到V7,现在ES无法启动:

OpenJDK 64-Bit Server VM warning: Ignoring option CMSInitiatingOccupancyFraction; support was removed in 14.0
OpenJDK 64-Bit Server VM warning: Ignoring option UseCMSInitiatingOccupancyOnly; support was removed in 14.0
Invalid -Xlog option '-Xlog:gc*,gc+age=trace,safepoint:file=logs/gc.log:utctime,pid,tags:filecount=32,filesize=64m', see error log for details.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
at org.elasticsearch.tools.launchers.JvmErgonomics.flagsFinal(JvmErgonomics.java:126)
at org.elasticsearch.tools.launchers.JvmErgonomics.finalJvmOptions(JvmErgonomics.java:88)
at org.elasticsearch.tools.launchers.JvmErgonomics.choose(JvmErgonomics.java:59)
at org.elasticsearch.tools.launchers.JvmOptionsParser.jvmOptions(JvmOptionsParser.java:137)
at org.elasticsearch.tools.launchers.JvmOptionsParser.main(JvmOptionsParser.java:95)
试图重新安装和更新开发人员工具。

最佳答案

我终于找到了这个疯狂的问题-希望这对其他人有帮助。编辑此文件:/usr/local/etc/elasticsearch/jvm.options

# JDK 9+ GC logging
9-:-Xlog:gc*,gc+age=trace,safepoint:file=/usr/local/var/log/elasticsearch/gc.log:utctime,pid,tags:filecount=32,filesize=64m
# due to internationalization enhancements in JDK 9 Elasticsearch need to set the provider to COMPAT otherwise
# time/date parsing will break in an incompatible way for some date patterns and locals
9-:-Djava.locale.providers=COMPAT
然后创建 /usr/local/var/log/elasticsearch/gc.log文件。通过brew( brew services restart elasticsearch)重新启动ES,您就可以了👍

关于elasticsearch - Brew Elasticsearch失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64201042/

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