mahout-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Suneel Marthi <suneel_mar...@yahoo.com>
Subject Re: Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/mahout/math/Vector
Date Thu, 19 Dec 2013 18:05:57 GMT
U r missing mahout-math.jar from your classpath because u r only keying off mahout-core. 
Include mahout-math.jar in your javac classpath.





On Thursday, December 19, 2013 1:04 PM, Sameer Tilak <sstilak@live.com> wrote:
 
Hi everyone,
I used the following commands to generate the jar file:
javac -d /apps/analytics/myanalytics -classpath .:/apps/mahout/trunk/core/target/mahout-core-0.9-SNAPSHOT.jar:/users/p529444/software/hadoop-1.0.3/hadoop-core-1.0.3.jar:/apps/mahout/trunk/core/target/mahout-core-0.9-SNAPSHOT-job.jar
SimpleKMeansClustering.java
jar -cf myanalytics.jar myanalytics/
I am getting the enclosed error message while executing the following command:
hadoop jar /apps/analytics/myanalytics.jar myanalytics.SimpleKMeansClustering -libjars /apps/mahout/trunk/core/target/mahout-core-0.9-SNAPSHOT.jar
/apps/mahout/trunk/math/target/mahout-math-0.9-SNAPSHOT.jar
Warning: $HADOOP_HOME is deprecated.
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/mahout/math/Vector   
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.mahout.math.Vector    at java.net.URLClassLoader$1.run(URLClassLoader.java:366)   
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)    at java.security.AccessController.doPrivileged(Native
Method)    at java.net.URLClassLoader.findClass(URLClassLoader.java:354)    at java.lang.ClassLoader.loadClass(ClassLoader.java:423)   
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message