Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Flume >> mail # user >> log4jappender hang's

Copy link to this message
Re: log4jappender hang's
Have you set up the appender correctly? The log4j appender class is org.apache.flume.client.log4jappender.Log4jAppender - this is what needs to go in where you specify the appender in the log4j.properties file.

Hari Shreedharan
On Friday, January 25, 2013 at 9:05 AM, yogi nerella wrote:

> Hi,
> I have a simple class which uses log4jappender and logs a single line.
> The process reports the following error and hangs.  
> log4j:WARN No appenders could be found for logger (org.apache.flume.api.NettyAvroRpcClient).
> log4j:WARN Please initialize the log4j system properly.
> log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
> Classpath: .:../lib/log4j-1.2.16.jar:../lib/avro-1.7.2.jar:../lib/avro-ipc-1.7.2.jar:../lib/flume-ng-core-1.3.1.jar:../lib/flume-ng-sdk-1.3.1.jar:../lib/flume-ng-log4jappender-1.3.1.jar:../lib/jackson-core-asl-1.9.3.jar:../lib/jackson-mapper-asl-1.9.3.jar:../lib/netty-3.4.0.Final.jar:../lib/slf4j-api-1.6.1.jar:../lib/slf4j-log4j12-1.6.1.jar
> log4j:ERROR Flume append() failed.
> I have captured the stack trace and attaching the java class, compilation script and test shell script.
> Stack trace is available in hung_stack.log file.
> Any help is greatly appreciated.
> Yogi
> Attachments:
> - flume_test.gz