Search code examples
hadoopcluster-analysismahoutk-means

Vector.class doesn't exist in Mahout-core 0.7 -cdh4.2.1 jar, not able to run SimpleKMeansClustering Example


Hi i'm new to Mahout so was to trying to run the SimpleKMeansClustering from Github. I dowloaded the Mahout-core jar from Cloudera Repository.

Now when i'm trying to compile my code in eclipse, i cannot find the Vector.Class in org.apche.mahout.math

Please can you let me know where i can find the Vector.class or how to run a clustering example on my own.

Note: I'm using Hadoop Chd4.2.1 and the mahout example for Syntheticcontrol data works fine so its just i'm looking for a custom code for my own data to cluster, so that i can run that in mahout.

Please help we are in a deadline to showcase some capability of Hadoop in Machine Learning.


Solution

  • Your classpath is incomplete.

    You are missing the mahout-math jar.

    Probably here:

    /usr/lib/mahout/mahout-math-0.7.jar
    

    That is the path on my system.