Author: edwardyoon
Date: Thu Feb 28 01:42:06 2013
New Revision: 1451070
URL: http://svn.apache.org/r1451070
Log:
Update website
Added:
hama/trunk/src/site/xdoc/run_examples.xml
Modified:
hama/trunk/src/site/site.xml
hama/trunk/src/site/xdoc/getting_started_with_hama.xml
Modified: hama/trunk/src/site/site.xml
URL:
http://svn.apache.org/viewvc/hama/trunk/src/site/site.xml?rev=1451070&r1=1451069&r2=1451070&view=diff
==============================================================================
--- hama/trunk/src/site/site.xml (original)
+++ hama/trunk/src/site/site.xml Thu Feb 28 01:42:06 2013
@@ -62,6 +62,7 @@
<menu name="Documentation">
<item name="Getting Started" href="getting_started_with_hama.html" />
<item name="Hama on Clouds" href="hama_on_clouds.html" />
+ <item name="Run Examples" href="run_examples.html" />
<item name="BSP tutorial" href="hama_bsp_tutorial.html" />
<item name="Graph tutorial" href="hama_graph_tutorial.html" />
<item name="Benchmarks" href="http://wiki.apache.org/hama/Benchmarks" />
Modified: hama/trunk/src/site/xdoc/getting_started_with_hama.xml
URL:
http://svn.apache.org/viewvc/hama/trunk/src/site/xdoc/getting_started_with_hama.xml?rev=1451070&r1=1451069&r2=1451070&view=diff
==============================================================================
--- hama/trunk/src/site/xdoc/getting_started_with_hama.xml (original)
+++ hama/trunk/src/site/xdoc/getting_started_with_hama.xml Thu Feb 28 01:42:06
2013
@@ -119,8 +119,5 @@ xsi:schemaLocation="http://maven.apache.
% $HAMA_HOME/bin/stop-bspd.sh</pre>
<p>to stop all the daemons running on your cluster.</p>
- <subsection name="Execute Hama Examples"></subsection>
- <pre>
- % $HAMA_HOME/bin/hama jar hama-examples-x.x.x.jar [args]</pre>
</body>
</document>
Added: hama/trunk/src/site/xdoc/run_examples.xml
URL:
http://svn.apache.org/viewvc/hama/trunk/src/site/xdoc/run_examples.xml?rev=1451070&view=auto
==============================================================================
--- hama/trunk/src/site/xdoc/run_examples.xml (added)
+++ hama/trunk/src/site/xdoc/run_examples.xml Thu Feb 28 01:42:06 2013
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<document xmlns="http://maven.apache.org/XDOC/2.0"
+xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+xsi:schemaLocation="http://maven.apache.org/XDOC/2.0
http://maven.apache.org/xsd/xdoc-2.0.xsd">
+ <properties></properties>
+ <title>Run Examples</title>
+ <body>
+ <section name="Run Examples"></section>
+ <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>
+
+ <pre>
+ % $HAMA_HOME/bin/hama jar hama-examples-x.x.x.jar gen symmetric 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>
+ </body>
+</document>