mahout-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Danny Bickson <>
Subject Re: How to run Mahout java code from commandline ?
Date Sat, 24 Sep 2011 07:10:44 GMT
It is very simple: in the root folder you run (for example for k-means:)
./bin/mahout kmeans -i ~/usr7/small_netflix_mahout/ -o
~/usr7/small_netflix_mahout_output/ --numClusters
10 -c ~/usr7/small_netflix_mahout/ -x 10

where ./bin/mahout is used for any mahout application, and the next keyword
(kmeans in this case) defines the algorithm type.
The rest of the inputs are algorithm specific.

If you want to add a new application to the existing ones, you need to edit
file and point into your main class.


- Danny Bickson

On Sat, Sep 24, 2011 at 9:59 AM, praveenesh kumar <>wrote:

> Hey,
> I have this code written using mahout libraries. I am able to run the code
> from eclipse
> How can I run the code written in mahout from command line ?
> My question is do I have to make a jar file and run it as hadoop jar
> jarfilename.jar class
> or shall I run it using simple java command ?
> Can anyone solve my confusion ?
> I am not able to run this code.
> Thanks,
> Praveenesh

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