Yes, definitely correct. Is there documentation that says otherwise that we should fix?
On Thu, Aug 18, 2011 at 5:41 PM, Kris Jack <[email protected]> wrote: > Hello, > > I was just running the distributed recommender on ec2 and encountered this > error: > > java.lang.IllegalStateException: java.lang.ClassNotFoundException: > DistributedLoglikelihoodVectorSimilarity > at > > org.apache.mahout.math.hadoop.similarity.RowSimilarityJob.instantiateSimilarity(RowSimilarityJob.java:244) > at > > org.apache.mahout.math.hadoop.similarity.RowSimilarityJob$RowWeightMapper.setup(RowSimilarityJob.java:262) > at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:142) > at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:629) > at org.apache.hadoop.mapred.MapTask.run(MapTask.java:310) > at org.apache.hadoop.mapred.Child.main(Child.java:170) > Caused by: java.lang.ClassNotFoundException: > DistributedLoglikelihoodVectorSimilarity > 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:169) > at > > org.apache.mahout.math.hadoop.similarity.RowSimilarityJob.instantiateSimilarity(RowSimilarityJob.java:242) > ... 5 more > > It seems that Class.forName(classname) requires the fully qualified class > name and not just the class name ( > > http://download.oracle.com/javase/1.4.2/docs/api/java/lang/Class.html#forName(java.lang.String) > ). > > Fixed the bug by adding in the fully qualified class name. > > Thought that you might like to know, > Kris >
