* Added "run K-Means example" * Added Anastasis Andronidis to team list * Updated my info.
Index: src/site/xdoc/run_examples.xml =================================================================== --- workspace/hama-trunk/src/site/xdoc/run_examples.xml (revision 1573411) +++ workspace/hama-trunk/src/site/xdoc/run_examples.xml (working copy) @@ -25,15 +25,28 @@ <p>Hama Examples package allows you to quickly run examples on your Hama Cluster.<br/> This document describes how to quickly run examples, assume that you have already installed Hama cluster and you have tested it.</p> - <subsection name="Run PageRank on your Hama Cluster"></subsection> - <p>1. First, you need to generate a symmetric adjacency matrix using the 'gen' command:</p> + <subsection name="Run PageRank example"></subsection> + <p>1. First, you need to generate a random graph using the 'gen' command:</p> - <pre> - % $HAMA_HOME/bin/hama jar hama-examples-x.x.x.jar gen symmetric 100 10 randomgraph 2</pre> + <pre> + % $HAMA_HOME/bin/hama jar hama-examples-x.x.x.jar gen fastgen 100 10 randomgraph 2</pre> - <p>This will create a graph with 100 nodes and 1K edges and store 2 partitions on HDFS as the sequence file. + <p>This will create a graph with 100 vertices and 1K edges and store 2 partitions on HDFS as the sequence file. You can adjust partition and tasks numbers to fit your cluster. Then, run PageRank using:</p> <pre> % $HAMA_HOME/bin/hama jar hama-examples-x.x.x.jar pagerank randomgraph pagerankresult 4</pre> + + <subsection name="Run K-Means example"></subsection> + Download a <a href="http://people.apache.org/~edwardyoon/kmeans.txt">Iris data set</a> [<a href="http://archive.ics.uci.edu/ml/datasets/Iris">Data set Information</a>]. + And then, run K-Means using: + <pre> + % $HAMA_HOME/bin/hama jar hama-examples-x.x.x.jar kmeans /tmp/kmeans.txt /tmp/result 10 3 + ... + [5.1, 3.5, 1.4, 0.2] belongs to cluster 2 + [4.9, 3.0, 1.4, 0.2] belongs to cluster 2 + [4.7, 3.2, 1.3, 0.2] belongs to cluster 2 + [4.6, 3.1, 1.5, 0.2] belongs to cluster 2 + ...</pre> + </body> </document> Index: src/site/xdoc/team-list.xml =================================================================== --- workspace/hama-trunk/src/site/xdoc/team-list.xml (revision 1573411) +++ workspace/hama-trunk/src/site/xdoc/team-list.xml (working copy) @@ -53,6 +53,12 @@ </th> </tr> <tr valign="top"> + <td align="center">andronat</td> + <td align="center">Anastasis Andronidis</td> + <td align="center">CERN</td> + <td align="center">committer</td> + </tr> + <tr valign="top"> <td align="center">apurv</td> <td align="center">Apurv Verma</td> <td align="center">.</td> -- Edward J. Yoon (@eddieyoon) Chief Executive Officer DataSayer, Inc.