我用brew安装在Mac OS 14.0.6 Elasticsearch上。它必须是ES V 6-而不是7。但是我也不得不安装7-同样的错误。
那么jdk一定有问题吗?
一切运行正常之后,我从命令elasticsearch
开始,并在控制台中收到以下错误:
JAVA版本: Java版本 java版本“ 12.0.2” 2019-07-16 Java(TM)SE运行时环境(内部版本12.0.2 + 10) Java HotSpot(TM)64位服务器VM(内部版本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)
at org.apache.logging.log4j.core.LoggerContext.setConfiguration(LoggerContext.java:547)
at org.apache.logging.log4j.core.LoggerContext.start(LoggerContext.java:263)
at org.elasticsearch.common.logging.LogConfigurator.configure(LogConfigurator.java:234)
at org.elasticsearch.common.logging.LogConfigurator.configure(LogConfigurator.java:127)
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:302)
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:159)
at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:150)
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86)
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124)
at org.elasticsearch.cli.Command.main(Command.java:90)
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:116)
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:93)
2019-08-19 20:19:13,222 main ERROR Unable to invoke factory method in class org.apache.logging.log4j.core.appender.RollingFileAppender for element RollingFile: java.lang.IllegalStateException: No factory method found for class org.apache.logging.log4j.core.appender.RollingFileAppender java.lang.IllegalStateException: No factory method found for class org.apache.logging.log4j.core.appender.RollingFileAppender
.......and on .... ```
I tried different reinstalls, but nothing works. Some help will be nice.
答案 0 :(得分:0)
删除v7并安装v6后,仍然存在相同的问题。通过手动删除ES配置来解决此问题,然后重新安装ES
brew remove elasticsearch
rm -fR `brew --prefix`/etc/elasticsearch
brew install elasticsearch