0

I try to run a Mahout Kmeans Example on the cloudera quickstart vm for hadoop. I read here link to clouudera block and here stack overflow post that i can use the -libjars command to attach the mahout .jars

I put the jar-files: KMeansHadoop.jar mahout-core-0.9.jar and mahout-math-0.9.jar in the same folder and run:

hadoop jar KMeansHadoop.jar SimpleKMeansClustering -libjars mahout-core-0.9.jar mahout-math-0.9.jar

But i still get the error:

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/mahout/math/Vector

What do i wrong? Thank you!

Community
  • 1
  • 1
Xeriotek
  • 53
  • 1
  • 5

1 Answers1

0

Firstly, I believe that the -libjars values need to be comma-separated. But that only makes your third-party jars available to the cluster. You may also need to use HADOOP_CLASSPATH to make those jars available on the client side (e.g: on the edge node from which you're kicking off your job).

Check out this post. It helped me a lot when I was working my way through this exact issue with getting Driven to work with Cascading.