admin管理员组文章数量:1350113
I have a fresh install of pdi-ce-8.3.0.0-371 on a RedHat LINUX server.
The default log4j.xml file resides in the classpath at: ./data-integration/classes/log4j.xml
We're using: Java - openjdk version "1.8.0_412"
When executing a Pentaho job there is either warning or a stacktrace. (See details below.)
The out-of-the-box log4j.xml file contains an appender: pdi-execution-appender. It's a template for a rolling appender. Instead we want it to be a console appender.
What is the minimal log4j.xml edit for that?
WIs there an explanation for sometimes there being a WARNING - but other times getting a STACKTRACE?
How can the stacktrace issue be resolved?
<appender name="pdi-execution-appender" class=".apache.log4j.rolling.RollingFileAppender"> <rollingPolicy class=".apache.log4j.rolling.TimeBasedRollingPolicy"> <param name="ActiveFileName" value="logs/pdi.log" /> <param name="FileNamePattern" value="logs/pdi.%d{yyyy-MM-dd}.log" /> </rollingPolicy> <layout class=".apache.log4j.PatternLayout"> <param name="ConversionPattern" value="%d{yyyy-MM-dd HH:mm:ss.SSS} %-5p <%t> %m%n"/> </layout> </appender> **WARNING** ####################################################################### OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0 log4j:WARN Continuable parsing error 45 and column 76 log4j:WARN Element type "rollingPolicy" must be declared. log4j:WARN Continuable parsing error 52 and column 14 log4j:WARN The content of element type "appender" must match "(errorHandler?,param*,layout?,filter*,appender-ref*)". log4j:WARN Please set a rolling policy for the RollingFileAppender named 'pdi-execution-appender' **STACKTRACE** DEBUG: PENTAHO_INSTALLED_LICENSE_PATH= OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0 log4j:ERROR Could not create an Appender. Reported error follows. java.lang.ClassCastException: .apache.log4j.ConsoleAppender cannot be cast to .apache.log4j.Appender at .apache.log4j.xml.DOMConfigurator.parseAppender(DOMConfigurator.java:248) at .apache.log4j.xml.DOMConfigurator.findAppenderByName(DOMConfigurator.java:176) at .apache.log4j.xml.DOMConfigurator.findAppenderByReference(DOMConfigurator.java:191) at .apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement(DOMConfigurator.java:523) at .apache.log4j.xml.DOMConfigurator.parseCategory(DOMConfigurator.java:436) at .apache.log4j.xml.DOMConfigurator.parse(DOMConfigurator.java:1004) at .apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:872) at .apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:755) at .apache.log4j.xml.DOMConfigurator.configure(DOMConfigurator.java:896) at .pentaho.di.core.logging.log4j.Log4jLogging.applyLog4jConfiguration(Log4jLogging.java:81) at .pentaho.di.core.logging.log4j.Log4jLogging.createLogger(Log4jLogging.java:89) at .pentaho.di.core.logging.log4j.Log4jLogging.init(Log4jLogging.java:68) at .pentaho.di.core.KettleClientEnvironment.initLogginPlugins(KettleClientEnvironment.java:141) at .pentaho.di.core.KettleClientEnvironment.init(KettleClientEnvironment.java:104) at .pentaho.di.kitchen.Kitchen$1.call(Kitchen.java:89) at .pentaho.di.kitchen.Kitchen$1.call(Kitchen.java:83) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
From the get go I was unclear what log4j.xml edits to try. Deploying edits to the LINUX server take 30 minutes.
本文标签:
版权声明:本文标题:What is the log4j.xml edits to either remove or to modify the out-of-the-box rolling appender for Pentaho 8.3 CE? - Stack Overfl 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1743869720a2553241.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论