flume-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brock Noland <br...@cloudera.com>
Subject Re: log4jappender hang's
Date Fri, 25 Jan 2013 17:18:51 GMT
Also, Mike Percy has a working example here:
https://github.com/mpercy/flume-log4j-example



On Fri, Jan 25, 2013 at 11:10 AM, Hari Shreedharan
<hshreedharan@cloudera.com> wrote:
> 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
>
> --
> 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
>
>



-- 
Apache MRUnit - Unit testing MapReduce - http://incubator.apache.org/mrunit/

Mime
View raw message