mahout-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Abhinav M Kulkarni <abhinavkulka...@gmail.com>
Subject Error in KMeansDriver
Date Sun, 05 Aug 2012 04:54:17 GMT
Hi,

I have a small snippet of code which gives me error. Points written in 
the input directory are of the type VectorWritable (value), key being 
LongWritable. Clusters written to part-00000 file are of the type 
Kluster (value), key being Text. Both these files are of SequenceFile 
format.

Code snippet:

KMeansDriver.run(conf, new Path("input/points"), new 
Path("input/part-00000"),
                 new Path("output"), new EuclideanDistanceMeasure(), 
0.001, 10, true, 0, false);

Error:

Error: java.lang.ClassNotFoundException: org.apache.mahout.math.Vector
     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 sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
     at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
     at java.lang.Class.forName0(Native Method)
     at java.lang.Class.forName(Class.java:264)
     at 
org.apache.hadoop.conf.Configuration.getClassByName(Configuration.java:820)
     at org.apache.hadoop.io.WritableName.getClass(WritableName.java:71)
     at 
org.apache.hadoop.io.SequenceFile$Reader.getValueClass(SequenceFile.java:1671)
     at 
org.apache.hadoop.io.SequenceFile$Reader.init(SequenceFile.java:1613)
     at 
org.apache.hadoop.io.SequenceFile$Reader.<init>(SequenceFile.java:1486)
     at 
org.apache.hadoop.io.SequenceFile$Reader.<init>(SequenceFile.java:1475)
     at 
org.apache.hadoop.io.SequenceFile$Reader.<init>(SequenceFile.java:1470)
     at 
org.apache.hadoop.mapreduce.lib.input.SequenceFileRecordReader.initialize(SequenceFileRecordReader.java:50)
     at 
org.apache.hadoop.mapred.MapTask$NewTrackingRecordReader.initialize(MapTask.java:522)
     at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:763)
     at org.apache.hadoop.mapred.MapTask.run(MapTask.java:370)
     at org.apache.hadoop.mapred.Child$4.run(Child.java:255)
     at java.security.AccessController.doPrivileged(Native Method)
     at javax.security.auth.Subject.doAs(Subject.java:416)
     at 
org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1121)
     at org.apache.hadoop.mapred.Child.main(Child.java:249)

Can someone spot me why this error?

Mime
View raw message