为了账号安全,请及时绑定邮箱和手机立即绑定

Elasticsearch MAC 10.14.6 与 Java jdk-12.0.2.jdk

Elasticsearch MAC 10.14.6 与 Java jdk-12.0.2.jdk

米琪卡哇伊 2023-06-14 14:30:16
我在 Mac OS 14.0.6 Elasticsearch 上安装了 brew。它必须是 ES V 6 - 而不是 7。但我也安装了 7 - 同样的错误。那么jdk一定有问题吗?一切运行良好后,我从命令开始elasticsearch,并在控制台中收到以下错误:JAVA 版本:java -version java version "12.0.2" 2019-07-16 Java(TM) SE Runtime Environment (build 12.0.2+10) Java HotSpot(TM) 64-Bit Server VM (build 12.0.2+10 , 混合模式, 共享)2019-08-19 20:19:13,173 main ERROR Unable to locate plugin type for ESJsonLayout2019-08-19 20:19:13,173 main ERROR Unable to locate plugin type for ESJsonLayout2019-08-19 20:19:13,174 main ERROR Unable to locate plugin type for ESJsonLayout2019-08-19 20:19:13,202 main ERROR Unable to locate plugin for ESJsonLayout2019-08-19 20:19:13,219 main ERROR Could not create plugin of type class org.apache.logging.log4j.core.appender.RollingFileAppender for element RollingFile: java.lang.NullPointerException java.lang.NullPointerException        at org.apache.logging.log4j.core.config.plugins.visitors.PluginElementVisitor.findNamedNode(PluginElementVisitor.java:103)        at org.apache.logging.log4j.core.config.plugins.visitors.PluginElementVisitor.visit(PluginElementVisitor.java:87)        at org.apache.logging.log4j.core.config.plugins.util.PluginBuilder.injectFields(PluginBuilder.java:181)        at org.apache.logging.log4j.core.config.plugins.util.PluginBuilder.build(PluginBuilder.java:122)        at org.apache.logging.log4j.core.config.AbstractConfiguration.createPluginObject(AbstractConfiguration.java:959)        at org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:899)        at org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:891)        at org.apache.logging.log4j.core.config.AbstractConfiguration.doConfigure(AbstractConfiguration.java:514)        at org.apache.logging.log4j.core.config.AbstractConfiguration.initialize(AbstractConfiguration.java:238)        at org.apache.logging.log4j.core.config.AbstractConfiguration.start(AbstractConfiguration.java:250)
查看完整描述

1 回答

?
慕的地10843

TA贡献1785条经验 获得超8个赞

删除v7并安装v6后出现同样的问题。通过手动删除 ES 配置并重新安装 ES 来解决此问题

brew remove elasticsearch

rm -fR `brew --prefix`/etc/elasticsearch

brew install elasticsearch


查看完整回答
反对 回复 2023-06-14
  • 1 回答
  • 0 关注
  • 121 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信