[root@test bin]# ./flume-ng agent -n a1 -c conf -f conf/flume-conf.properties + exec /usr/java/jdk1.6.0_30/bin/java -Xmx20m -cp 'conf:/usr/local/flume/lib/*' -Djava.library.path= org.apache.flume.node.Application -n a1 -f conf/flume-conf.properties log4j:WARN No appenders could be found for logger (org.apache.flume.node.Application). log4j:WARN Please initialize the log4j system properly. log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
解决方法,但我没有解决该问题
说是JDK的环境变量设置问题。
http://stackoverflow.com/questions/12280403/flume-running-failed-in-linux
相关推荐
NULL 博文链接:https://wait7758521.iteye.com/blog/1933964
log4j:WARN No appenders could be found for logger (org.apache.ibatis.logging.LogFactory). log4j:WARN Please initialize the log4j system properly. 将这个文件放到resources目录下,消除警告。
log4j:WARN No appenders could be found for logger org apache commons beanutils ConvertUtils 出现这个错误 在web inf classes路径下加了log4j properties文件还是这个错误log4j:WARN Please initialize the ...
首先,错误信息"log4j:WARN No appenders could be found for logger"表明Log4j找不到任何日志输出的目标,也就是没有设置日志appender。日志appender是Log4j用来定义日志输出目的地的组件,比如控制台、文件、邮件...
《构建企业级应用:MyEclipse中整合Struts、Hibernate、Spring及FreeMarker详解》 在企业级Web应用开发中,Struts、Hibernate、Spring和FreeMarker这四大框架的集成使用已经成为主流。本资料旨在图解如何在...
log4j:WARN No appenders could be found for logger (org.apache.hadoop.metrics2.lib.MutableMetricsFactory). log4j:WARN Please initialize the log4j system properly. log4j:WARN See ...
log4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader). log4j:WARN Please initialize the log4j system properly. 2009-8-29 14:02:12 org.apache.catalina.core....
log4j:WARN No appenders could be found for logger (com.mchange.v2.log.MLog). log4j:WARN Please initialize the log4j system properly.
模式爬虫配置单元 不幸的是,到目前为止, 似乎是不切实际的。 从hive-1.1.0(CDH5.4)开始,...log4j:WARN No appenders could be found for logger (org.apache.hive.jdbc.Utils). log4j:WARN Please initialize the
《深入理解log4j ASYNC Appender在dotcms中的应用》 在Java开发领域,日志记录是一项至关重要的任务,它能够帮助开发者追踪程序运行状态,定位错误与异常,优化性能。Log4j作为Java中广泛使用的日志框架,提供了...
报错WARN No appenders could be found for logger 或 WARN Please initialize the log4j system properly时需要引入的包。用法可以参考https://blog.csdn.net/u010912188/article/details/79761894
clj-hbase 这是一个用于 hbase 0.98.3 的小型且仍然不完整的 clojure 包装器 用法 假设我们有一个带有列族“byte-data...log4j:WARN No appenders could be found for logger ( org.apache.hadoop.metrics2.lib.Mutabl
log4j:WARN No appenders could be found for logger (org.apache.mons.digester.Digester). log4j:WARN Please initialize the log4j system properly. 2009-11-06 21:39:17 org.apache.catalina.core....
import org.apache.log4j.Logger; public class MyClass { private static final Logger logger = Logger.getLogger(MyClass.class); public void someMethod() { logger.debug("This is a debug message"); ...
<appender name="console" class="org.apache.log4j.ConsoleAppender"> <layout class="org.apache.log4j.PatternLayout"> ``` 在这个配置中,定义了一个名为“console”的Appender,它将日志...
log4j.appender.myConsoleAppender.layout=org.apache.log4j.PatternLayout log4j.appender.myConsoleAppender.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n ``` ##### 3. Layouts...
在源代码中,你可能还会看到CXF的日志调用,如`org.apache.cxf.common.logging.LogFactory.getLogger()`,这将根据配置返回一个适当的Logger实例,用于记录日志。 除了上述基础配置,你还可以根据需求进一步定制,...
例如,在Spring框架的应用中,如果没有正确配置log4j,就可能出现“log4j:WARN No appenders could be found for logger (org.springframework.context.support.ClassPathXmlApplicationContext)”这类警告信息。...