Index: src/site/site.xml =================================================================== --- src/site/site.xml (revision 1438290) +++ src/site/site.xml (working copy) @@ -62,6 +62,7 @@ + Index: src/site/xdoc/getting_started_with_hama.xml =================================================================== --- src/site/xdoc/getting_started_with_hama.xml (revision 1438290) +++ src/site/xdoc/getting_started_with_hama.xml (working copy) @@ -119,8 +119,5 @@ % $HAMA_HOME/bin/stop-bspd.sh

to stop all the daemons running on your cluster.

- -
-  % $HAMA_HOME/bin/hama jar hama-examples-x.x.x.jar [args]
Index: src/site/xdoc/run_examples.xml =================================================================== --- src/site/xdoc/run_examples.xml (revision 0) +++ src/site/xdoc/run_examples.xml (working copy) @@ -0,0 +1,39 @@ + + + + + Run Examples + +
+

Hama Examples package allows you to quickly run examples on your Hama Cluster.
+ This document describes how to quickly run examples, assume that you have already installed Hama cluster and you have tested it.

+ + +

1. First, you need to generate a symmetric adjacency matrix using the 'gen' command:

+ +
+    % $HAMA_HOME/bin/hama jar hama-examples-x.x.x.jar gen symmetric 100 10 randomgraph 2
+ +

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:

+
+  % $HAMA_HOME/bin/hama jar hama-examples-x.x.x.jar pagerank randomgraph pagerankresult 4
+ +