today on a new environment (EMR) with Kylin 1.5.3, I also encounter this " class path resource [kylin-server-log4j.pro perties] cannot be resolved to URL because it does not exist" error; I temporarily fixed it by copy the kylin-server-log4j.properties file from conf/ to tomcat/webapps/kylin/WEB-INF/classes;
The root cause is described in https://issues.apache.org/jira/browse/KYLIN-1963; After upgrading to the 1.5.4, the problem didn't occur. please have a try. 2016-08-11 22:39 GMT+08:00 ShaoFeng Shi <[email protected]>: > Hi tongxin, > > Have you found the solution? This file should be packaged in > $KYLIN_HOME/conf, and will be added to classpath during the startup. Please > check: 1) whether this file exists in conf folder 2) whether the > bin/kylin.sh has been modified > > > > 2016-08-02 14:31 GMT+08:00 仇同心 <[email protected]>: > >> 大家好: >> 升级到1.5.3版本后,启动kylin,登录时kylin.log文件没生成,在kylin.out文件里报错: >> >> INFO: Initializing log4j from [classpath:kylin-server-log4j.properties] >> Aug 02, 2016 2:26:53 PM org.apache.catalina.core.StandardContext >> listenerStart >> SEVERE: Exception sending context initialized event to listener instance >> of class org.apache.kylin.rest.util.Log4jConfig >> Listener >> java.lang.IllegalArgumentException: Invalid 'log4jConfigLocation' >> parameter: class path resource [kylin-server-log4j.pro >> perties] cannot be resolved to URL because it does not exist >> at org.springframework.web.util.Log4jWebConfigurer.initLogging( >> Log4jWebConfigurer.java:155) >> at org.springframework.web.util.Log4jConfigListener.contextInit >> ialized(Log4jConfigListener.java:45) >> at org.apache.kylin.rest.util.Log4jConfigListener.contextInitia >> lized(Log4jConfigListener.java:36) >> at org.apache.catalina.core.StandardContext.listenerStart(Stand >> ardContext.java:5068) >> at org.apache.catalina.core.StandardContext.startInternal(Stand >> ardContext.java:5584) >> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase. >> java:147) >> at org.apache.catalina.core.ContainerBase.addChildInternal(Cont >> ainerBase.java:899) >> at org.apache.catalina.core.ContainerBase.addChild(ContainerBas >> e.java:875) >> at org.apache.catalina.core.StandardHost.addChild(StandardHost. >> java:652) >> at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig. >> java:1092) >> at org.apache.catalina.startup.HostConfig$DeployWar.run(HostCon >> fig.java:1984) >> at java.util.concurrent.Executors$RunnableAdapter.call( >> Executors.java:471) >> at java.util.concurrent.FutureTask.run(FutureTask.java:262) >> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPool >> Executor.java:1145) >> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoo >> lExecutor.java:615) >> at java.lang.Thread.run(Thread.java:744) >> >> kylin-server-log4j.properties在conf目录下是存在的,这个错误有遇到的吗? >> >> >> 谢谢~ >> > > > > -- > Best regards, > > Shaofeng Shi > > -- Best regards, Shaofeng Shi 史少锋
