hama-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From edwardy...@apache.org
Subject svn commit: r1574469 - in /hama/trunk/src/site/xdoc: run_examples.xml team-list.xml
Date Wed, 05 Mar 2014 13:27:33 GMT
Author: edwardyoon
Date: Wed Mar  5 13:27:32 2014
New Revision: 1574469

URL: http://svn.apache.org/r1574469
Log: (empty)

Modified:
    hama/trunk/src/site/xdoc/run_examples.xml
    hama/trunk/src/site/xdoc/team-list.xml

Modified: hama/trunk/src/site/xdoc/run_examples.xml
URL: http://svn.apache.org/viewvc/hama/trunk/src/site/xdoc/run_examples.xml?rev=1574469&r1=1574468&r2=1574469&view=diff
==============================================================================
--- hama/trunk/src/site/xdoc/run_examples.xml (original)
+++ hama/trunk/src/site/xdoc/run_examples.xml Wed Mar  5 13:27:32 2014
@@ -25,15 +25,28 @@ xsi:schemaLocation="http://maven.apache.
     <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>
+    <subsection name="Run PageRank example"></subsection>
     <p>1. First, you need to generate a symmetric adjacency matrix using the 'gen'
command:</p>
     
     <pre>
-    % $HAMA_HOME/bin/hama jar hama-examples-x.x.x.jar gen symmetric 100 10 randomgraph 2</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. 
     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 dataset</a>
[<a href="http://archive.ics.uci.edu/ml/datasets/Iris">Dataset 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>

Modified: hama/trunk/src/site/xdoc/team-list.xml
URL: http://svn.apache.org/viewvc/hama/trunk/src/site/xdoc/team-list.xml?rev=1574469&r1=1574468&r2=1574469&view=diff
==============================================================================
--- hama/trunk/src/site/xdoc/team-list.xml (original)
+++ hama/trunk/src/site/xdoc/team-list.xml Wed Mar  5 13:27:32 2014
@@ -53,6 +53,11 @@ xsi:schemaLocation="http://maven.apache.
         </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>
           <td align="center">apurv</td>
           <td align="center">Apurv Verma</td>
           <td align="center">.</td>



Mime
View raw message