Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 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
Copy link to this message
-
Re: log4jappender hang's
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
<[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
>
>

--
Apache MRUnit - Unit testing MapReduce - http://incubator.apache.org/mrunit/
+
yogi nerella 2013-01-25, 17:41
+
yogi nerella 2013-01-25, 18:06
+
Hari Shreedharan 2013-01-25, 18:38
+
yogi nerella 2013-01-25, 18:57
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB