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
Hari,

This is working with the slf4j-api-1.7.2.jar and slf4j-jdk14-1.7.2.jar, but
not working with the one which is shipped with flume.

Thanks
Yogi
On Fri, Jan 25, 2013 at 10:38 AM, Hari Shreedharan <
[EMAIL PROTECTED]> wrote:

> Yep, clients is plural, sorry about that. Can you try using Mike's
> example(Brock sent the link above)
>
>
> On Fri, Jan 25, 2013 at 10:06 AM, yogi nerella <[EMAIL PROTECTED]>wrote:
>
>> 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#noconfigfor 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
>>>>
>>>>
>>>>
>>>
>>
>