flume-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jonathan Hsieh <...@cloudera.com>
Subject Re: FlumeLog4jAvroAppender.java
Date Thu, 21 Jul 2011 12:07:05 GMT
[Please subscribe to new flume-user@incubator.apache.org list, bcc
flume-user@cloudera.org, cc flume-user@incubator.apache.org]

This looks like avro is missing something it needs to encode or ship data.  The
log4j appender gets integrated into your application.  It requires the avro
jars (and possibly the flume.jars?) in order to work.  Did you include the
jars avro depends on in the classpath of your application?

I believe these are:

avro-xxx.jar
paranamer-xxx.jar
jackson-core-asl-xxx.jar
jackson-mapper-asl-xxx.jar
slf4j-xxx.jar

where xxx is the versions.

These should be in the flume's lib dir.

Jon


On Fri, Jul 8, 2011 at 6:16 AM, sm-flume <cinjon.resnick@gmail.com> wrote:

> I am having trouble with the FlumeLog4jAvroAppender initializing
> classes. After figuring out a few of the concerns, this one is
> stumping me:
>
> java.lang.NoClassDefFoundError: Could not initialize class
> org.apache.avro.ipc.specific.SpecificRequestor
>        at
>
> com.cloudera.flume.log4j.appender.FlumeLog4jAvroAppender.attemptConnection(FlumeLog4jAvroAppender.java:
> 173)
>        at
>
> com.cloudera.flume.log4j.appender.FlumeLog4jAvroAppender.connect(FlumeLog4jAvroAppender.java:
> 130)
>        at
>
> com.cloudera.flume.log4j.appender.FlumeLog4jAvroAppender.append(FlumeLog4jAvroAppender.java:
> 195)
>        at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:
> 230)
>        at
>
> org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:
> 65)
>        at org.apache.log4j.Category.callAppenders(Category.java:203)
>        at org.apache.log4j.Category.forcedLog(Category.java:388)
>        at org.apache.log4j.Category.log(Category.java:853)
>        ....
>
> That file is in the flume-core and I am unsure why it is having
> trouble initializing. Any help would be appreciated.
>



-- 
// Jonathan Hsieh (shay)
// Software Engineer, Cloudera
// jon@cloudera.com

Mime
View raw message