mahout-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simon Reavely <simon.reav...@gmail.com>
Subject Trouble running RecommenderJob with Mahout 0.3 - class not found issues
Date Mon, 09 Aug 2010 15:16:24 GMT
#!/bin/sh
# mapred.input.dir = file/dir containing the history to process
# usersFile = user ids to produce recommendations for
# This will run a co-occurrence algorithm on it
hadoop jar mahout-0.3/mahout-core-0.3.job
org.apache.mahout.cf.taste.hadoop.item.RecommenderJob --input
/user/sreavely/mahout-boolean-enduseraction-input.csv --output
/user/sreavely/mahout-output --usersFile
/user/sreavely/mahout-users-to-recommend-for.txt

This is what i get...

Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException:
org.apache.mahout.cf.taste.hadoop.item.ItemIDIndexMapper
        at
org.apache.hadoop.conf.Configuration.getClass(Configuration.java:809)
        at
org.apache.hadoop.conf.Configuration.getClass(Configuration.java:833)
        ... 12 more
Caused by: java.lang.ClassNotFoundException:
org.apache.mahout.cf.taste.hadoop.item.ItemIDIndexMapper
        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:247)
        at
org.apache.hadoop.conf.Configuration.getClassByName(Configuration.java:762)
        at
org.apache.hadoop.conf.Configuration.getClass(Configuration.java:807)
        ... 13 more

I was assuming that the .job file (being a jar file) would have all this
stuff in it. Any thoughts what is going wrong?

Cheers,
Simon

-- 
Simon Reavely
simon.reavely@gmail.com

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message