hama-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Hama Wiki] Update of "PageRank" by edwardyoon
Date Sun, 14 Jun 2015 23:26:59 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Hama Wiki" for change notification.

The "PageRank" page has been changed by edwardyoon:
https://wiki.apache.org/hama/PageRank?action=diff&rev1=13&rev2=14

  First of all, generate a symmetric adjacency matrix using the gen command. 
  
  {{{
-   % bin/hama jar hama-examples-0.x.0.jar gen fastgen 100 10 randomgraph 2
+   % bin/hama jar hama-examples-0.x.0.jar gen fastgen -v 100 -e 10 -o randomgraph -t 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:
  
  {{{
-   % bin/hama jar hama-examples-0.x.0.jar pagerank randomgraph pagerankresult 4
+   % bin/hama jar hama-examples-0.x.0.jar pagerank -i randomgraph -o pagerankresult -t 4
  }}}
  

Mime
View raw message