至于什么原因也不太清楚。不过楼主可以一一尝试,先全部注释,然后在一个个放开,比如总共下面四个属性全部注释掉
[mw_shl_code=bash,true]#log4j.appender.flume = org.apache.flume.clients.log4jappender.Log4jAppender
#log4j.appender.flume.Hostname = localhost
#log4j.appender.flume.Port = 44444
#log4j.appender.flume.UnsafeMode = true[/mw_shl_code]
然后放开第一个
[mw_shl_code=bash,true]log4j.appender.flume = org.apache.flume.clients.log4jappender.Log4jAppender
#log4j.appender.flume.Hostname = localhost
#log4j.appender.flume.Port = 44444
#log4j.appender.flume.UnsafeMode = true[/mw_shl_code]
如果没有问题,在放开第二个
[mw_shl_code=bash,true]log4j.appender.flume = org.apache.flume.clients.log4jappender.Log4jAppender
log4j.appender.flume.Hostname = localhost
#log4j.appender.flume.Port = 44444
#log4j.appender.flume.UnsafeMode = true[/mw_shl_code]
这样就可以找到问题了。
|