Return-Path: Delivered-To: apmail-lucene-mahout-dev-archive@minotaur.apache.org Received: (qmail 77593 invoked from network); 18 Aug 2009 17:29:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 18 Aug 2009 17:29:11 -0000 Received: (qmail 51920 invoked by uid 500); 18 Aug 2009 17:29:30 -0000 Delivered-To: apmail-lucene-mahout-dev-archive@lucene.apache.org Received: (qmail 51868 invoked by uid 500); 18 Aug 2009 17:29:30 -0000 Mailing-List: contact mahout-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: mahout-dev@lucene.apache.org Delivered-To: mailing list mahout-dev@lucene.apache.org Received: (qmail 51858 invoked by uid 99); 18 Aug 2009 17:29:30 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Aug 2009 17:29:29 +0000 X-ASF-Spam-Status: No, hits=3.0 required=10.0 tests=MIME_QP_LONG_LINE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [87.248.110.139] (HELO n22.bullet.mail.ukl.yahoo.com) (87.248.110.139) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 18 Aug 2009 17:29:16 +0000 Received: from [217.146.182.178] by n22.bullet.mail.ukl.yahoo.com with NNFMP; 18 Aug 2009 17:28:53 -0000 Received: from [87.248.111.147] by t4.bullet.ukl.yahoo.com with NNFMP; 18 Aug 2009 17:28:53 -0000 Received: from [127.0.0.1] by omp204.mail.ukl.yahoo.com with NNFMP; 18 Aug 2009 17:28:53 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 802948.96439.bm@omp204.mail.ukl.yahoo.com Received: (qmail 2120 invoked by uid 60001); 18 Aug 2009 17:28:53 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.fr; s=s1024; t=1250616533; bh=aZfV/XVL3b7nH/9Ar6WxYAJdoGfZYjktEutd3OlPueY=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=zIlkcdF3ed43HqQ+JOgc69kUcWeJXfCO0bCJBSYt0uZzoXP9sRwhWs5/o6bKhBlITr3uHCY8MnLQbkphMej6iFNRbxgg+Si9RVvkkr8LcDgYV2Bkr+VVk0aK+qwh3KuxhbwcK5+oNx4363t2K1kMxd4cApAqVNEFj7Xj3lJ7LpM= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.fr; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=nIh4dylpjRUsE3+RNWCtJTxawnt+IGb8YzenF6Uz06JKdWWlW+1mDpx1FLyOWVju9s+gwJ6kWFwHq67kq0hpBgDesiQCLh38Q1oyjLpucNn5BD9+0mlxS3i5toUVmnUpcIL3NN6JXbSjTZvTSzwxm82Gl9ZK7IUPqMT8NxEKUiY=; Message-ID: <714405.2099.qm@web26304.mail.ukl.yahoo.com> X-YMail-OSG: Iqu5D40VM1mUqz2CAdhWou7IZ5VtYHt8GZ5.g8eVnvxImJ09Zj4XN.yx Received: from [41.97.185.108] by web26304.mail.ukl.yahoo.com via HTTP; Tue, 18 Aug 2009 10:28:53 PDT X-Mailer: YahooMailClassic/6.1.2 YahooMailWebService/0.7.338.1 Date: Tue, 18 Aug 2009 10:28:53 -0700 (PDT) From: deneche abdelhakim Subject: Re: class not found bug ? To: mahout-dev@lucene.apache.org In-Reply-To: <8BD5DFE4-A577-42F7-B6BB-C521D7EBD9D3@apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org > Try 0.20.0. Also, you may need to flatten the JOB jar=0A> into a single = jar.=0A=0AMy example and Kmeans example Don't work on 0.20.0 without actual= ly flattening the JOB jar. But as I wrote in my last post, there may be a s= impler solution: modifying "maven/build.xml" seems to solve the problem, at= least for my examples and kmeans:=0A=0AIndex: maven/build.xml=0A=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=0A--- maven/build.xml (revisi= on 804891)=0A+++ maven/build.xml (working copy)=0A@@ -45,9 +45,9 @@=0A = includes=3D"**/*.jar"/>=0A =0A- =0A+ =0A =0A+ = includes=3D"**/*.jar" excludes=3D"apache-mahout-core-${version}= ..jar"/>=0A =0A =0A=0A=0A--- E= n date de=A0: Lun 17.8.09, Grant Ingersoll a =E9crit= =A0:=0A=0A> De: Grant Ingersoll =0A> Objet: Re: class = not found bug ?=0A> =C0: mahout-dev@lucene.apache.org=0A> Date: Lundi 17 Ao= =FBt 2009, 14h46=0A> =0A> On Aug 17, 2009, at 7:36 AM, deneche abdelhakim w= rote:=0A> =0A> > I moved recently some of the "Decision Forest"=0A> example= s from the core project to the examples project.=0A> While in core they wor= ked perfectly in hadoop 0..19.1=0A> (pseudo-distributed), but now they don'= t !!!=0A> =0A> Try 0.20.0.=A0 Also, you may need to flatten the JOB jar=0A>= into a single jar.=0A> =0A> =0A> > =0A> > For example, running my=0A> org.= apache.mahout.df.BuildForest gives the following=0A> exception:=0A> > =0A> = > ....=0A> > 09/08/17 12:02:36 INFO mapred.JobClient: Running job:=0A> job_= 200908171136_0020=0A> > 09/08/17 12:02:37 INFO mapred.JobClient:=A0 map 0%= =0A> reduce 0%=0A> > 09/08/17 12:02:43 INFO mapred.JobClient: Task Id :=0A>= attempt_200908171136_0020_m_000000_0, Status : FAILED=0A> > java.lang.NoCl= assDefFoundError:=0A> com/thoughtworks/xstream/XStream=0A> > =A0=A0=A0 at= =0A> org.apache.mahout.utils.StringUtils.(StringUtils.java:28)=0A> = > =A0=A0=A0 at=0A> org.apache.mahout.df.mapred.Builder.getTreeBuilder(Build= er.java:117)=0A> > =A0=A0=A0 at=0A> org.apache.mahout.df.mapred.MapredMappe= r.configure(MapredMapper.java:74)=0A> > =A0=A0=A0 at=0A> org.apache.mahout.= df.mapred.partial.Step1Mapper.configure(Step1Mapper.java:75)=0A> > =A0=A0= =A0 at=0A> org.apache.hadoop.util.ReflectionUtils.setConf(ReflectionUtils.j= ava:58)=0A> > =A0=A0=A0 at=0A> org.apache.hadoop.util.ReflectionUtils.newIn= stance(ReflectionUtils.java:83)=0A> > ...=0A> > =0A> > =0A> > So I tried in= stead to run one of mahout's : following=0A> the wiki, kmeans gives me the = following error:=0A> > =0A> > ...=0A> > 09/08/17 11:59:27 INFO kmeans.KMean= sDriver: Iteration=0A> 4=0A> > ...=0A> > 09/08/17 11:59:43 INFO kmeans.KMea= nsDriver:=0A> Clustering=0A> > 09/08/17 11:59:43 INFO kmeans.KMeansDriver: = Running=0A> Clustering=0A> > 09/08/17 11:59:43 INFO kmeans.KMeansDriver: In= put:=0A> output/data Clusters In: output/clusters-4 Out:=0A> output/points = Distance:=0A> org.apache.mahout.utils.EuclideanDistanceMeasure=0A> > 09/08/= 17 11:59:43 INFO kmeans.KMeansDriver:=0A> convergence: 0.5 Input Vectors:= =0A> org.apache.mahout.matrix.SparseVector=0A> > 09/08/17 11:59:43 WARN map= red.JobClient: Use=0A> GenericOptionsParser for parsing the arguments. Appl= ications=0A> should implement Tool for the same.=0A> > 09/08/17 11:59:43 IN= FO mapred..FileInputFormat: Total=0A> input paths to process : 2=0A> > 09/0= 8/17 11:59:43 INFO mapred.JobClient: Running job:=0A> job_200908171136_0019= =0A> > 09/08/17 11:59:44 INFO mapred.JobClient:=A0 map 0%=0A> reduce 0%=0A>= > 09/08/17 11:59:54 INFO mapred.JobClient: Task Id :=0A> attempt_200908171= 136_0019_m_000000_0, Status : FAILED=0A> > java.lang.NoClassDefFoundError:= =0A> com/google/gson/reflect/TypeToken=0A> > =A0=A0=A0 at=0A> java.lang.Cla= ssLoader.defineClass1(Native Method)=0A> > =A0=A0=A0 at=0A> java.lang.Class= Loader.defineClass(ClassLoader.java:637)=0A> > =A0=A0=A0 at=0A> java.securi= ty.SecureClassLoader.defineClass(SecureClassLoader.java:142)=0A> > =A0=A0= =A0 at=0A> java.net.URLClassLoader.defineClass(URLClassLoader.java:277)=0A>= > =A0=A0=A0 at=0A> java.net.URLClassLoader.access$000(URLClassLoader.java:= 73)=0A> > =A0=A0=A0 at=0A> java.net.URLClassLoader$1.run(URLClassLoader.jav= a:212)=0A> > =A0=A0=A0 at=0A> java.security.AccessController.doPrivileged(N= ative Method)=0A> > ...=0A> > =0A> > The problem seems related to the fact = that=0A> mahout-core.jar is being packed inside examples.jar. So I=0A> modi= fied maven/build.xml to pack the core classes instead=0A> (because they are= available):=0A> > =0A> > Index: maven/build.xml=0A> >=0A> =3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=0A> > --- maven/build.xml=A0=A0=A0 (re= vision=0A> 804891)=0A> > +++ maven/build.xml=A0=A0=A0 (working copy)=0A> > = @@ -45,9 +45,9 @@=0A> >=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=0A> =A0=A0=A0include= s=3D"**/*.jar"/>=0A> >=A0 =A0 =A0=A0=A0 dir=3D"${core-lib}" = prefix=3D"lib"=0A> >=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=0A> =A0=A0=A0includes= =3D"**/*.jar"=0A> excludes=3D"hadoop-*.jar"/>=0A> > -=A0 =A0 =A0 dir=3D"../core/target/" prefix=3D"lib"=0A> includes=3D"apache-mahout-= core-${version}.jar"/>=0A> > +=A0 =A0 =A0 dir=3D"../core/ta= rget/classes"/>=0A> >=A0 =A0 =A0=A0=A0 dir=3D"${dest}/depend= ency" prefix=3D"lib"=0A> > -=A0 =A0 =A0 =A0 =A0 =A0 =A0=0A> =A0 =A0 include= s=3D"**/*.jar"/>=0A> > +=A0 =A0 =A0 =A0 =A0 =A0 =A0=0A> =A0 =A0 includes=3D= "**/*.jar"=0A> excludes=3D"apache-mahout-core-${version}.jar"/>=0A> >=A0 = =A0 =A0=A0=A0 dir=3D"../core/target/dependency" prefix=3D"li= b"=0A> >=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=0A> =A0=A0=A0includes=3D"**/*.jar"/= >=0A> >=A0 =A0=A0=A0=0A> > =0A> > This seems to solve the problem, bu= t I didn't try it=0A> on all examples=0A> > =0A> > ________________________= __________________________=0A> > Do You Yahoo!?=0A> > En finir avec le spam= ? Yahoo! Mail vous offre la=0A> meilleure protection possible contre les me= ssages non=0A> sollicit=E9s=0A> > http://mail.yahoo.fr Yahoo! Mail=0A> > = =0A> =0A> --------------------------=0A> Grant Ingersoll=0A> http://www.luc= idimagination.com/=0A> =0A> Search the Lucene ecosystem=0A> (Lucene/Solr/Nu= tch/Mahout/Tika/Droids) using Solr/Lucene:=0A> http://www.lucidimagination.= com/search=0A> =0A> =0A=0A_________________________________________________= _=0ADo You Yahoo!?=0AEn finir avec le spam? Yahoo! Mail vous offre la meill= eure protection possible contre les messages non sollicit=E9s =0Ahttp://mai= l.yahoo.fr Yahoo! Mail