mahout-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tsegay Tekle <tsegay.te...@gmail.com>
Subject problem running mahout kmeans: Error: java.lang.ClassNotFoundException: org.apache.mahout.math.Vector
Date Thu, 17 Jun 2010 04:27:03 GMT
Hello,

I have downloaded the source code for mahout 0.4 from
http://svn.apache.org/repos/asf/mahout/

And i have followed the intructions for installation exaclty from the mahout
website, but when i start running the Synthetic Control Data   example, i
got an Error

I have tried to include the mahout core and example jar files to hadoop lib
dir, but that didnt solve the problem.

Here the command:

./bin/hadoop jar
/root/mahout/trunk/examples/target/mahout-examples-0.4-SNAPSHOT.job
org.apache.mahout.clustering.syntheticcontrol.kmeans.Job

And the errors that i got is this,


10/06/16 23:51:28 INFO common.HadoopUtil: Deleting output
10/06/16 23:51:28 INFO kmeans.Job: Preparing Input
10/06/16 23:51:28 INFO kmeans.Job: Done ..
10/06/16 23:51:28 WARN mapred.JobClient: Use GenericOptionsParser for
parsing the arguments. Applications should implement Tool for the same.
10/06/16 23:51:28 WARN mapred.JobClient: No job jar file set.  User classes
may not be found. See JobConf(Class) or JobConf#setJar(String).
10/06/16 23:51:28 INFO input.FileInputFormat: Total input paths to process :
1
10/06/16 23:51:29 INFO mapred.JobClient: Running job: job_201006162345_0002
10/06/16 23:51:30 INFO mapred.JobClient:  map 0% reduce 0%
10/06/16 23:51:41 INFO mapred.JobClient: Task Id :
attempt_201006162345_0002_m_000000_0, Status : FAILED
Error: java.lang.ClassNotFoundException: org.apache.mahout.math.Vector
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:303)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316)
        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)
        at
org.apache.hadoop.conf.Configuration.getClass(Configuration.java:833)
        at
org.apache.hadoop.mapred.JobConf.getOutputValueClass(JobConf.java:754)
        at
org.apache.hadoop.mapreduce.JobContext.getOutputValueClass(JobContext.java:103)
        at
org.apache.hadoop.mapreduce.lib.output.SequenceFileOutputFormat.getRecordWriter(SequenceFileOutputFormat.java:61)
        at
org.apache.hadoop.mapred.MapTask$NewDirectOutputCollector.<init>(MapTask.java:488)
        at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:610)
        at org.apache.hadoop.mapred.MapTask.run(MapTask.java:305)
        at org.apache.hadoop.mapred.Child.main(Child.java:170)
10/06/16 23:51:47 INFO mapred.JobClient: Task Id :
attempt_201006162345_0002_m_000000_1, Status : FAILED
java.lang.RuntimeException: java.lang.ClassNotFoundException:
org.apache.mahout.clustering.syntheticcontrol.canopy.InputMapper
        at
org.apache.hadoop.conf.Configuration.getClass(Configuration.java:809)
        at
org.apache.hadoop.mapreduce.JobContext.getMapperClass(JobContext.java:157)
        at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:569)
        at org.apache.hadoop.mapred.MapTask.run(MapTask.java:305)
        at org.apache.hadoop.mapred.Child.main(Child.java:170)
.......




Thanks,

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