From user-return-5369-apmail-mahout-user-archive=mahout.apache.org@mahout.apache.org Sat Nov 20 11:30:52 2010 Return-Path: Delivered-To: apmail-mahout-user-archive@www.apache.org Received: (qmail 42066 invoked from network); 20 Nov 2010 11:30:52 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 20 Nov 2010 11:30:52 -0000 Received: (qmail 99774 invoked by uid 500); 20 Nov 2010 11:31:23 -0000 Delivered-To: apmail-mahout-user-archive@mahout.apache.org Received: (qmail 99560 invoked by uid 500); 20 Nov 2010 11:31:23 -0000 Mailing-List: contact user-help@mahout.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@mahout.apache.org Delivered-To: mailing list user@mahout.apache.org Received: (qmail 99552 invoked by uid 99); 20 Nov 2010 11:31:23 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 20 Nov 2010 11:31:23 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of stefanobellasio@gmail.com designates 74.125.82.170 as permitted sender) Received: from [74.125.82.170] (HELO mail-wy0-f170.google.com) (74.125.82.170) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 20 Nov 2010 11:31:15 +0000 Received: by wye20 with SMTP id 20so201202wye.1 for ; Sat, 20 Nov 2010 03:30:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:content-type:mime-version :subject:from:in-reply-to:date:content-transfer-encoding:message-id :references:to:x-mailer; bh=WS7Jocry4e58FvzLlz0taJPZ5V1ZaLmaYZF97tLKuCU=; b=Q7Ikl/ZdBRrbBiayWBG1ZaTy4EO9EfVoAnu24EMqqiJ2iwVTRdox48qZH5zRx9AVTb kIuEFqMyHUkPeZ181O3glGUuaKyiznJeAqZVMJq2HCy1qejcHAJPUu7E/afZS9KAEmLc U5ozSd0MnPFLd+CENIcIACNViBt2Hc1jEvYIY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; b=d+8sWYxPSuLcKcxiC7guIwK28UpE6kXdX+EdZQ1iWmbTinw1jdJLEgS7vBhGvCiRO0 ejEyVQ1UctM+I2+NEdBiNSxZkgBx78k057hOr9G33ltesEQ63eJjn29ve1x+Kl+WHES9 evjQdhcX9LLXhpRZ+7nRf/XIlIxAEw5xX4MB4= Received: by 10.227.138.80 with SMTP id z16mr3520509wbt.93.1290252653501; Sat, 20 Nov 2010 03:30:53 -0800 (PST) Received: from [192.168.1.4] (ppp-103-195.15-151.iol.it [151.15.195.103]) by mx.google.com with ESMTPS id x12sm1262893weq.18.2010.11.20.03.30.52 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 20 Nov 2010 03:30:52 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1082) Subject: Re: Grouplens dataset Recommenderjob with Hadoop From: Stefano Bellasio In-Reply-To: Date: Sat, 20 Nov 2010 12:30:28 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: References: <027A8AA6-5CE5-4223-81B8-DEC4E0FB719A@gmail.com> <6BD632C4-BF86-4B06-8765-1A8F0788EF58@gmail.com> <66D292F4-138B-448F-BF9D-3058412D531B@gmail.com> <81BE03B3-1D47-43C8-A014-D412688AD33B@gmail.com> To: user@mahout.apache.org X-Mailer: Apple Mail (2.1082) So for example i need to follow the same steps of Wikipedia example in = Mahout in Action? then package it and use with this? Please i need some = info just about the correct steps :) Thanks Il giorno 20/nov/2010, alle ore 12.28, Sean Owen ha scritto: > Yes, you can't use this recommender directly, since it has no no-arg > constructor. It by itself is not a complete recommender system -- it = doesn't > have a DataModel. You need to write your own wrapper implementation of > Recommender which constructs a complete delegate inside. See the = examples in > the javadoc or book. >=20 > On Sat, Nov 20, 2010 at 11:23 AM, Stefano Bellasio < > stefanobellasio@gmail.com> wrote: >=20 >> Ok, im searching for that, but first of all, before that error i see >>=20 >> java.lang.IllegalStateException: java.lang.NoSuchMethodException: >> = org.apache.mahout.cf.taste.impl.recommender.GenericItemBasedRecommender.(org.apache.mahout.cf.taste.model.DataModel) >> at >> = org.apache.mahout.cf.taste.hadoop.pseudo.RecommenderReducer.setup(Recommen= derReducer.java:81) >> at org.apache.hadoop.mapreduce.Reducer.run(Reducer.java:174) >> at >> = org.apache.hadoop.mapred.ReduceTask.runNewReducer(ReduceTask.java:566) >> at org.apache.hadoop.mapred.ReduceTask.run(ReduceTask.java:408) >> at >> = org.apache.hadoop.mapred.LocalJobRunner$Job.run(LocalJobRunner.java:216) >> Caused by: java.lang.NoSuchMethodException: >> = org.apache.mahout.cf.taste.impl.recommender.GenericItemBasedRecommender.(org.apache.mahout.cf.taste.model.DataModel) >> at java.lang.Class.getConstructor0(Class.java:2706) >> at java.lang.Class.getConstructor(Class.java:1657) >> at >> = org.apache.mahout.cf.taste.hadoop.pseudo.RecommenderReducer.setup(Recommen= derReducer.java:78) >> ... 4 more >> 10/11/20 12:21:50 INFO mapred.JobClient: Job complete: job_local_0001 >> 10/11/20 12:21:50 INFO mapred.JobClient: Counters: 14 >> 10/11/20 12:21:50 INFO mapred.JobClient: FileSystemCounters >> 10/11/20 12:21:50 INFO mapred.JobClient: FILE_BYTES_READ=3D17546530= >> 10/11/20 12:21:50 INFO mapred.JobClient: HDFS_BYTES_READ=3D34695906= >> 10/11/20 12:21:50 INFO mapred.JobClient: = FILE_BYTES_WRITTEN=3D11751492 >> 10/11/20 12:21:50 INFO mapred.JobClient: = HDFS_BYTES_WRITTEN=3D17542312 >> 10/11/20 12:21:50 INFO mapred.JobClient: Map-Reduce Framework >> 10/11/20 12:21:50 INFO mapred.JobClient: Reduce input groups=3D0 >> 10/11/20 12:21:50 INFO mapred.JobClient: Combine output records=3D0= >> 10/11/20 12:21:50 INFO mapred.JobClient: Map input = records=3D1000209 >> 10/11/20 12:21:50 INFO mapred.JobClient: Reduce shuffle bytes=3D0 >> 10/11/20 12:21:50 INFO mapred.JobClient: Reduce output records=3D0 >> 10/11/20 12:21:50 INFO mapred.JobClient: Spilled Records=3D2000418 >> 10/11/20 12:21:50 INFO mapred.JobClient: Map output bytes=3D1990807= >> 10/11/20 12:21:50 INFO mapred.JobClient: Combine input records=3D0 >> 10/11/20 12:21:50 INFO mapred.JobClient: Map output = records=3D1000209 >> 10/11/20 12:21:50 INFO mapred.JobClient: Reduce input records=3D0 >>=20 >>=20 >> So is a problem about the class i think, well my command line is: >>=20 >> ../hadoop/bin/hadoop jar core/target/mahout-core-0.5-SNAPSHOT.job.jar >> org.apache.mahout.cf.taste.hadoop.pseudo.RecommenderJob -i = input/ratings.txt >> -o data/ratings4 --recommenderClassName >> = org.apache.mahout.cf.taste.impl.recommender.GenericItemBasedRecommender >>=20 >> Thanks again >>=20 >> Il giorno 20/nov/2010, alle ore 12.07, Sean Owen ha scritto: >>=20 >>> Sorry but that's something to do with Hadoop, not Mahout. It seems = like >> an >>> error in your HDFS cluster. >>>=20 >>> On Sat, Nov 20, 2010 at 10:41 AM, Stefano Bellasio < >>> stefanobellasio@gmail.com> wrote: >>>=20 >>>> Ok Sean, thank you, works very well :) Now when i run hadoop with = that >>>> before finish it say this: >>>>=20 >>>>=20 >>=20 >>=20