Return-Path: X-Original-To: apmail-zookeeper-user-archive@www.apache.org Delivered-To: apmail-zookeeper-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DA61E11491 for ; Mon, 12 May 2014 21:27:47 +0000 (UTC) Received: (qmail 88535 invoked by uid 500); 12 May 2014 18:41:07 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 88478 invoked by uid 500); 12 May 2014 18:41:07 -0000 Mailing-List: contact user-help@zookeeper.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@zookeeper.apache.org Delivered-To: mailing list user@zookeeper.apache.org Delivered-To: moderator for user@zookeeper.apache.org Received: (qmail 2540 invoked by uid 99); 12 May 2014 17:52:02 -0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) X-Sender-Id: asmallorange|x-authuser|matt%40mattnworb.com X-Sender-Id: asmallorange|x-authuser|matt%40mattnworb.com X-MC-Relay: Neutral X-MailChannels-SenderId: asmallorange%7Cx-authuser%7Cmatt%2540mattnworb.com X-MailChannels-Auth-Id: asmallorange Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\)) Subject: Re: missing method in my slf4j after excluding ZK log4j From: Matt Brown In-Reply-To: <7376ebeffbff4da6b887c19acee0c701@DM2PR07MB527.namprd07.prod.outlook.com> Date: Mon, 12 May 2014 13:51:21 -0400 Content-Transfer-Encoding: quoted-printable Message-Id: <97250C88-2C84-4E6B-937F-22720F5176D3@mattnworb.com> References: <7376ebeffbff4da6b887c19acee0c701@DM2PR07MB527.namprd07.prod.outlook.com> To: user@zookeeper.apache.org X-Mailer: Apple Mail (2.1874) X-AuthUser: matt@mattnworb.com X-Virus-Checked: Checked by ClamAV on apache.org 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=3D279 On May 12, 2014, at 11:07 AM, Adrian Mocanu = 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. >=20 > 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 >=20 > 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(AkkaUti= ls.scala:58) > at = org.apache.spark.util.AkkaUtils$$anonfun$createActorSystem$1.apply(AkkaUti= ls.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.(SparkContext.scala:139) > at = org.apache.spark.streaming.StreamingContext$.createNewSparkContext(Streami= ngContext.scala:500) > at = org.apache.spark.streaming.StreamingContext.(StreamingContext.scala:= 76) > ... >=20 > Is there a way to find out what versions of slf4j I need to make it = work with log4j 1.2.17? >=20 > Thanks a lot! > -Adrian >=20