Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to run Kmean Clustering from Mahout in Action?
    primarykey
    data
    text
    <p>Hi I was trying to run the example from Mahout in action Chapter 7(k-Mean Clustering). Can somebody guide me how to run that example in a Hadoop Cluster(single Node CDH-4.2.1) with Mahout(0.7)</p> <p>These are the steps i followed:</p> <ol> <li><p>Copied the code( from <a href="https://github.com/tdunning/MiA/blob/master/src/main/java/mia/clustering/ch07/SimpleKMeansClustering.java" rel="nofollow">Github</a>)into my Eclipse IDE, on my local machine. </p></li> <li><p>Incuded these jars into my Eclipse project. </p></li> </ol> <p>hadoop-common-2.0.0-cdh4.2.1.jar</p> <p>hadoop-hdfs-2.0.0-cdh4.2.1.jar</p> <p>hadoop-mapreduce-client-core-2.0.0-cdh4.2.1.jar</p> <p>mahout-core-0.7-cdh4.3.0.jar</p> <p>mahout-core-0.7-cdh4.3.0-job.jar</p> <p>mahout-math-0.7-cdh4.3.0.jar</p> <ol> <li><p>Made a Jar of this project and copied that jar onto my Hadoop Cluster</p></li> <li><p>Executed this command </p></li> </ol> <blockquote> <p>user@INFPH01463U:~$ hadoop jar /home/user/apurv/Kmean.jar tryout.SimpleKMeansClustering</p> </blockquote> <p>which gave me following Error</p> <pre><code>Exception in thread "main" java.lang.NoClassDefFoundError: FileSystem at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2427) at java.lang.Class.getMethod0(Class.java:2670) at java.lang.Class.getMethod(Class.java:1603) at org.apache.hadoop.util.RunJar.main(RunJar.java:202) Caused by: java.lang.ClassNotFoundException: FileSystem 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:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) ... 5 more </code></pre> <p>Can anyone help me with what i'm missing or is my way of execution wrong?</p> <p>Secondly i would like to know how can i run K-mean Clustering on a CSV file??</p> <p>Thanks In Advance :)</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload