[
https://issues.apache.org/jira/browse/MAHOUT-551?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15171309#comment-15171309
]
Andrew Musselman commented on MAHOUT-551:
-----------------------------------------
The user mailing list
(https://mahout.apache.org/general/mailing-lists,-irc-and-archives.html) would
be a better place for this question but here's a page about how to run kmeans:
https://mahout.apache.org/users/clustering/k-means-clustering.html
It shows an example script
(https://github.com/apache/mahout/blob/master/examples/bin/cluster-reuters.sh)
you can adapt to run your own job but the high points of that script are:
* Runs seqdirectory to convert reuters-out to SequenceFile format
* Runs seq2sparse to convert SequenceFiles to sparse vector format
* Runs k-means with 20 clusters
* Runs clusterdump to show results
Make sure you're using the latest possible version of Mahout; at this point the
newest is 0.11.1.
> Kmeans example with space delimited data
> ----------------------------------------
>
> Key: MAHOUT-551
> URL: https://issues.apache.org/jira/browse/MAHOUT-551
> Project: Mahout
> Issue Type: Improvement
> Components: Integration
> Affects Versions: 0.4
> Reporter: Djellel Eddine Difallah
> Assignee: Jeff Eastman
> Priority: Minor
> Fix For: 0.5
>
> Attachments: MAHOUT-551.patch, MAHOUT-551.patch
>
>
> The provided example for Kmeans clustering using the synthetic control data
> asks for t1 and t2 measures because it runs the Canopy Driver to determine
> the initial clusters. Kmeans originally requires a K variable to generate
> random centers from the input data. I propose to add another example in the
> package which will serve for any space delimited numerical input to cluster
> with Kmeans in its original form and not using Canopy. The modification is
> quite simple and is mostly based on the synthetic control Job.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)