频道栏目
首页 > 网络 > 其他 > 正文

ELK 启动报错

2018-12-24 11:52:35           
收藏   我要投稿

如下是我自行搭建的一个elk群集,当我在启动集群的时候,一个节点启动失败,我对比了了集群的其他机器配置,排除了配置问题,结合操作记录,结合输出信息,我怀疑是某个文件权限问题,于是我检查了相关权限,系日志文件造成,我删除执行命令的输出日志,重新以非root账号启动,elk成功启动,如下为输出代码,希望后面大家有遇到的可以参考试试来解决问题

[elk@ES02 elasticsearch-6.5.0]$ ./bin/elasticsearch -d*[elk@ES02 elasticsearch-6.5.0]$ 2018-12-20 10:09:14,510 main ERROR RollingFileManager (/usr/local/elasticsearch-6.5.0/logs/elk.log) java.io.FileNotFoundException: /usr/local/elasticsearch-6.5.0/logs/elk.log (Permission denied) java.io.FileNotFoundException: /usr/local/elasticsearch-6.5.0/logs/elk.log (Permission denied)at java.io.FileOutputStream.open0(Native Method)at java.io.FileOutputStream.open(FileOutputStream.java:270)at java.io.FileOutputStream.(FileOutputStream.java:213)at java.io.FileOutputStream.(FileOutputStream.java:133)at org.apache.logging.log4j.core.appender.rolling.RollingFileManager$RollingFileManagerFactory.createManager(RollingFileManager.java:640)at org.apache.logging.log4j.core.appender.rolling.RollingFileManager$RollingFileManagerFactory.createManager(RollingFileManager.java:608)at org.apache.logging.log4j.core.appender.AbstractManager.getManager(AbstractManager.java:113)at org.apache.logging.log4j.core.appender.OutputStreamManager.getManager(OutputStreamManager.java:114)at org.apache.logging.log4j.core.appender.rolling.RollingFileManager.getFileManager(RollingFileManager.java:188)at org.apache.logging.log4j.core.appender.RollingFileAppender$Builder.build(RollingFileAppender.java:145)at org.apache.logging.log4j.core.appender.RollingFileAppender$Builder.build(RollingFileAppender.java:61)at org.apache.logging.log4j.core.config.plugins.util.PluginBuilder.build(PluginBuilder.java:123)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:136)at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:127)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:93)at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:86)

2018-12-20 10:09:14,514 main ERROR Could not create plugin of type class org.apache.logging.log4j.core.appender.RollingFileAppender for element RollingFile: java.lang.IllegalStateException: ManagerFactory [org.apache.logging.log4j.core.appender.rolling.RollingFileManager$RollingFileManagerFactory@437da279] unable to create manager for [/usr/local/elasticsearch-6.5.0/logs/elk.log] with data [org.apache.logging.log4j.core.appender.rolling.RollingFileManager$FactoryData@23c30a20[pattern=/usr/local/elasticsearch-6.5.0/logs/elk-%d{yyyy-MM-dd}-%i.log.gz, append=true, bufferedIO=true, bufferSize=8192, policy=CompositeTriggeringPolicy(policies=[TimeBasedTriggeringPolicy(nextRolloverMillis=0, interval=1, modulate=true), SizeBasedTriggeringPolicy(size=134217728)]), strategy=DefaultRolloverStrategy(min=-2147483648, max=2147483647, useMax=false), advertiseURI=null, layout=[%d{ISO8601}][%-5p][%-25c{1.}] [%nodename]%marker %.-10000m%n, filePermissions=null, fileOwner=null]] java.lang.IllegalStateException: ManagerFactory [org.apache.logging.log4j.core.appender.rolling.RollingFileManager$RollingFileManagerFactory@437da279] unable to create manager for [/usr/local/elasticsearch-6.5.0/logs/elk.log] with data [org.apache.logging.log4j.core.appender.rolling.RollingFileManager$FactoryData@23c30a20[pattern=/usr/local/elasticsearch-6.5.0/logs/elk-%d{yyyy-MM-dd}-%i.log.gz, append=true, bufferedIO=true, bufferSize=8192, policy=CompositeTriggeringPolicy(policies=[TimeBasedTriggeringPolicy(nextRolloverMillis=0, interval=1, modulate=true), SizeBasedTriggeringPolicy(size=134217728)]), strategy=DefaultRolloverStrategy(min=-2147483648, max=2147483647, useMax=false), advertiseURI=null, layout=[%d{ISO8601}][%-5p][%-25c{1.}] [%nodename]%marker %.-10000m%n, filePermissions=null, fileOwner=null]]at org.apache.logging.log4j.core.appender.AbstractManager.getManager(AbstractManager.java:115)at org.apache.logging.log4j.core.appender.OutputStreamManager.getManager(OutputStreamManager.java:114)at org.apache.logging.log4j.core.appender.rolling.RollingFileManager.getFileManager(RollingFileManager.java:188)at org.apache.logging.log4j.core.appender.RollingFileAppender$Builder.build(RollingFileAppender.java:145)at org.apache.logging.log4j.core.appender.RollingFileAppender$Builder.build(RollingFileAppender.java:61)at org.apache.logging.log4j.core.config.plugins.util.PluginBuilder.build(PluginBuilder.java:123)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:136)at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:127)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:93)at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:86)

2018-12-20 10:09:14,515 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.RollingFileAppenderat org.apache.logging.log4j.core.config.plugins.util.PluginBuilder.findFactoryMethod(PluginBuilder.java:235)at org.apache.logging.log4j.core.config.plugins.util.PluginBuilder.build(PluginBuilder.java:135)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:136)at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:127)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:93)at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:86)

2018-12-20 10:09:14,538 main ERROR Null object returned for RollingFile in Appenders.2018-12-20 10:09:14,538 main ERROR Unable to locate appender "rolling" for logger config "root"***

相关TAG标签 ELK 启动 报错
上一篇:centos上搭建GIT服务器
下一篇:centos上搭建GIT服务器
相关文章
图文推荐
热门新闻

关于我们 | 联系我们 | 广告服务 | 投资合作 | 版权申明 | 在线帮助 | 网站地图 | 作品发布 | Vip技术培训 | 举报中心

版权所有: 红黑联盟--致力于做实用的IT技术学习网站