Elasticsearch MAC 10.14.6 与 Java jdk-12.0.2.jdk

我在 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 ESJsonLayout

2019-08-19 20:19:13,173 main ERROR Unable to locate plugin type for ESJsonLayout

2019-08-19 20:19:13,174 main ERROR Unable to locate plugin type for ESJsonLayout

2019-08-19 20:19:13,202 main ERROR Unable to locate plugin for ESJsonLayout

2019-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)




米琪卡哇伊
浏览 123回答 1
1回答

慕的地10843

删除v7并安装v6后出现同样的问题。通过手动删除 ES 配置并重新安装 ES 来解决此问题brew remove elasticsearch rm -fR `brew --prefix`/etc/elasticsearch brew install elasticsearch
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Java