You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@flume.apache.org by bear gan <be...@hotmail.com> on 2016/01/13 02:01:09 UTC

答复: log4j:WARN

The problem is that the log parameter is not set.
Two methods:

1.     add in command: -Dflume.root.logger=DEBUG,console
cd /data/apache-flume-1.5.2-bin/
./bin/flume-ng agent -n httpagent-m1 -c conf -f   /data/apache-flume-1.5.2-bin/conf/top-agent-mobile1.conf --name httpagent-m1 -Dflume.root.logger=DEBUG,console



2.     add in command: -Dlog4j.configuration=./conf/log4j.properties
cd /data/apache-flume-1.5.2-bin/
./bin/flume-ng agent -n httpagent-m1 -c conf -f   /data/apache-flume-1.5.2-bin/conf/top-agent-mobile1.conf --name httpagent-m1 -Dlog4j.configuration=./conf/log4j.properties




发件人: zaenal rifai<ma...@gmail.com>
发送时间: 2016年1月12日 16:48
收件人: user@flume.apache.org<ma...@flume.apache.org>
主题: log4j:WARN

hai i have some problem when running flume

the error is

 + exec /usr/bin/java -Xmx1024m -cp '/opt/service/conf:/data/apache-flume-1.5.2-bin/lib/*' -Djava.library.path= org.apache.flume.node.Application --conf-file /data/apache-flume-1.5.2-bin/conf/top-agent-mobile1.conf --name httpagent-m1
log4j:WARN No appenders could be found for logger (org.apache.flume.lifecycle.LifecycleSupervisor).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.

i'm running flume with command

/data/apache-flume-1.5.2-bin/bin/flume-ng agent -n httpagent-m1 -c conf -f   /data/apache-flume-1.5.2-bin/conf/top-agent-mobile1.conf --name httpagent-m1


any suggest what i must suppose to do ?