Return-Path: X-Original-To: apmail-mahout-user-archive@www.apache.org Delivered-To: apmail-mahout-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 B47CAB759 for ; Wed, 18 Jan 2012 12:41:19 +0000 (UTC) Received: (qmail 52253 invoked by uid 500); 18 Jan 2012 12:41:18 -0000 Delivered-To: apmail-mahout-user-archive@mahout.apache.org Received: (qmail 52155 invoked by uid 500); 18 Jan 2012 12:41:17 -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 52147 invoked by uid 99); 18 Jan 2012 12:41:16 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Jan 2012 12:41:16 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of Martin.Wignall@autotrader.co.uk designates 193.243.130.247 as permitted sender) Received: from [193.243.130.247] (HELO mx1.tradermedia.co.uk) (193.243.130.247) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Jan 2012 12:41:03 +0000 X-AuditID: ac1e14be-b7b13ae000007448-a8-4f16bdc8d180 Received: from gtc-mailhub1.group.tradermedia.co.uk (gtc-mailhub1.group.tradermedia.co.uk [172.30.110.21]) by mx1.tradermedia.co.uk (Trader Media Group) with SMTP id 46.F2.29768.8CDB61F4; Wed, 18 Jan 2012 12:40:41 +0000 (GMT) Received: from TMG-E2K7CCR2.group.tradermedia.co.uk ([172.30.110.34]) by gtc-mailhub1.group.tradermedia.co.uk ([172.30.110.21]) with mapi; Wed, 18 Jan 2012 12:40:30 +0000 From: Martin Wignall To: "user@mahout.apache.org" Date: Wed, 18 Jan 2012 12:40:30 +0000 Subject: error running a RecommenderJob Thread-Topic: error running a RecommenderJob Thread-Index: AczV3k6YTqnsi+arSkOcgKVeaY1qXw== Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US x-exclaimer-md-config: 2da71fa4-460f-4b6d-b9d6-abf7f5f4fd88 Content-Type: multipart/alternative; boundary="_000_E3B4FFD6E695EE408BB1945B129CAF58A8ADC0E05CTMGE2K7CCR2gr_" MIME-Version: 1.0 X-Brightmail-Tracker: AAAAAQAAAZE= X-Virus-Checked: Checked by ClamAV on apache.org --_000_E3B4FFD6E695EE408BB1945B129CAF58A8ADC0E05CTMGE2K7CCR2gr_ Content-Type: text/plain; charset="us-ascii" content-transfer-encoding: quoted-printable Hi, I am new to mahout, and am working my way through the Mahout In Action book.= Now, I'm trying to execute a RecommenderJob, and see the following error: Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/common= s/cli2/Option at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:264) at org.apache.hadoop.util.RunJar.main(RunJar.java:149) Caused by: java.lang.ClassNotFoundException: org.apache.commons.cli2.Option at java.net.URLClassLoader$1.run(URLClassLoader.java:217) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:205) at java.lang.ClassLoader.loadClass(ClassLoader.java:321) at java.lang.ClassLoader.loadClass(ClassLoader.java:266) ... 3 more The command I'm executing is as follows: hadoop jar target/mahout-core-0.6-SNAPSHOT.jar org.apache.mahout.cf.taste.hadoop.item.RecommenderJob -Dmapred.input.dir=3Dinput/input.txt -Dmapred.output.dir=3Doutput --usersFile input/users.txt --booleanData This differs slightly from the command prescribed in the Mahout In Action bo= ok: bin/hadoop jar target/mahout-core-0.4-SNAPSHOT.job org.apache.mahout.cf.taste.hadoop.item.RecommenderJob -Dmapred.input.dir=3Dinput/input.txt -Dmapred.output.dir=3Doutput --usersFile input/users.txt --booleanData Obvious differences are (i) I'm on Mahout 0.6, and (ii) I don't have a .job= file to reference, only a .jar (target/mahout-core-0.6-SNAPSHOT.jar). I don= 't know if I should be referencing the .jar file in this way. Now, I have built the jar myself, by executing: mvn -DskipTests clean package from the core directory of Mahout. This appears to have worked fine, and I see the following in the core/target= directory drwxrwxr-x 6 martin martin 4096 2012-01-18 12:24 ./ drwxrwxr-x 8 martin martin 4096 2012-01-18 12:24 ../ drwxrwxr-x 3 martin martin 4096 2012-01-18 12:24 classes/ drwxrwxr-x 4 martin martin 4096 2012-01-18 12:24 generated-sources/ -rw-rw-r-- 1 martin martin 1641278 2012-01-18 12:24 mahout-core-0.6-SNAPSHOT= .jar drwxrwxr-x 2 martin martin 4096 2012-01-18 12:24 maven-archiver/ drwxrwxr-x 3 martin martin 4096 2012-01-18 12:24 test-classes/ Notice that there is no .job file, only a .jar. I'm not sure if the problem I'm seeing is due to the lack of a .job file, or= if it's something else that I've got wrong. Please can you help explain why I can't run the RecommenderJob? Many thanks, Martin ________________________________________=0A= =0A= =0A= This e-mail is sent on behalf of Trader Media Group Limited, Registered Offi= ce: Auto Trader House, Cutbush Park Industrial Estate, Danehill, Lower Earle= y, Reading, Berkshire, RG6 4UT(Registered in England No. 4768833). This emai= l and any files transmitted with it are confidential and may be legally priv= ileged, and intended solely for the use of the individual or entity to whom= they are addressed. If you have received this email in error please notify= the sender. This email message has been swept for the presence of computer= viruses. =0A= --_000_E3B4FFD6E695EE408BB1945B129CAF58A8ADC0E05CTMGE2K7CCR2gr_--