正在对es进行故障排除,我想尝试升级到7.10.2:
Dans-MacBook-Pro:~ aximus$ brew services restart elasticsearch
Stopping `elasticsearch`... (might take a while)
==> Successfully stopped `elasticsearch` (label: homebrew.mxcl.elasticsearch)
==> Successfully started `elasticsearch` (label: homebrew.mxcl.elasticsearch)
启动失败:
Dans-MacBook-Pro:~ aximus$ tail -f /usr/local/var/log/elasticsearch.log
error:
Unrecognized VM option 'UseConcMarkSweepGC'
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)
我已尝试重新安装和链接openjdk@11 (11.0.10)没有成功。目前死在水中:
Dans-MacBook-Pro:~ aximus$ curl 127.0.0.1:9200
curl: (7) Failed to connect to 127.0.0.1 port 9200: Connection refused
1条答案
按热度按时间eit6fx6z1#
偶然发现一个相关的问题,并意识到这是在我的
/usr/local/etc/elasticsearch/jvm.options
文件:把这些评论出来,现在都好了?