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

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


+
yogi nerella 2013-01-25, 17:05
+
Hari Shreedharan 2013-01-25, 17:10
+
Brock Noland 2013-01-25, 17:18
+
yogi nerella 2013-01-25, 17:41
Copy link to this message
-
Re: log4jappender hang's
Hello,

Sample provided is using the sl4j-api-1.7.2, sl4j-jdk14-1.7.2.jar, and it
is working fine.

Where as flume 1.3.1 is providing the version slf4j-api-1.6.1.jar which is
not working.

Is there any limitation that I have to use jdk14 version of the jar file?
Thanks
Yogi
On Fri, Jan 25, 2013 at 9:41 AM, yogi nerella <[EMAIL PROTECTED]> wrote:

> Hari,
>
> Sorry, I havent provided the zip file correctly.
>
> In my log4j.properties I have is
> "org.apache.flume.clients.log4jappender.Log4jAppender"   note client is
> plural clients.
>
> Please see the attached file.
>
> Thanks,
> Yogi
>
>
> On Fri, Jan 25, 2013 at 9:10 AM, Hari Shreedharan <
> [EMAIL PROTECTED]> 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
>>
>>
>>
>
+
Hari Shreedharan 2013-01-25, 18:38
+
yogi nerella 2013-01-25, 18:57