zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adrian Mocanu <amoc...@verticalscope.com>
Subject RE: missing method in my slf4j after excluding ZK log4j
Date Mon, 12 May 2014 20:06:59 GMT
Thanks; that worked!

-----Original Message-----
From: Matt Brown [mailto:matt@mattnworb.com] 
Sent: May-12-14 1:51 PM
To: user@zookeeper.apache.org
Subject: Re: missing method in my slf4j after excluding ZK log4j

Upgrade slf4j and log4j-over-slf4j to at least v1.7.6:

http://www.slf4j.org/news.html
http://bugzilla.slf4j.org/show_bug.cgi?id=279



On May 12, 2014, at 11:07 AM, Adrian Mocanu <amocanu@verticalscope.com> wrote:

> Hey guys,
> I use Spark 9.1 which is dependent on ZK. In my project I exclude ZK log4j bc I want
to use logback, but an issue arises.
> I wonder if anyone else has run into this.
> 
> ZK uses log4j v1.2.17 and slf4j-log4j12:1.7.2 I use slf4j 1.7.5, 
> logback 1.0.13, and log4joverslf4j v 1.7.5
> 
> I think my slf4j 1.7.5 doesn't agree with what zookeeper expects in its log4j v 1.2.17
because I get missing method error:
> java.lang.NoSuchMethodError: org.apache.log4j.Logger.setLevel(Lorg/apache/log4j/Level;)V
>                at org.apache.spark.util.AkkaUtils$$anonfun$createActorSystem$1.apply(AkkaUtils.scala:58)
>                at org.apache.spark.util.AkkaUtils$$anonfun$createActorSystem$1.apply(AkkaUtils.scala:58)
>                at scala.Option.map(Option.scala:145)
>                at org.apache.spark.util.AkkaUtils$.createActorSystem(AkkaUtils.scala:58)
>                at org.apache.spark.SparkEnv$.create(SparkEnv.scala:126)
>                at org.apache.spark.SparkContext.<init>(SparkContext.scala:139)
>                at org.apache.spark.streaming.StreamingContext$.createNewSparkContext(StreamingContext.scala:500)
>                at 
> org.apache.spark.streaming.StreamingContext.<init>(StreamingContext.sc
> ala:76)
> ...
> 
> Is there a way to find out what versions of slf4j I need to make it work with log4j 1.2.17?
> 
> Thanks a lot!
> -Adrian
> 


Mime
View raw message