Dear Wiki user,

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

The "GettingStartedYARN" page has been changed by MinhoKim:
https://wiki.apache.org/hama/GettingStartedYARN?action=diff&rev1=11&rev2=12

  
  == How to write a Hama-YARN job ==
  
+ === BSP job ===
+ 
  The [[BSPModel]] hasn't changed, but the way to submit a job has.
  
  Basically you just need the following code to submit a Hama-YARN job.
@@ -82, +84 @@

  {{{
  job.setMemoryUsedPerTaskInMb(50);
  }}}
+ 
+ === Graph job ===
+ 
+ Hama Graph jobs also isn't changed but you should change a little code from 
{{{GraphJob}}} to {{{YARNGraphJob}}} to run Hama graph job.
+ Let's show the following link, PageRank on YARN.
+ 
+ 
[[https://github.com/apache/hama/blob/trunk/yarn/src/main/java/org/apache/hama/bsp/PageRankonYarn.java|PageRank
 on YARN example]]
+ 
+ Compared to PageRank in existing graph example, this code only is changed 
from {{{GraphJob}}} to {{{YARNGraphJob}}}. 
+ How to launch graph job on YARN is same as existing graph job.
  
  == How to submit a job ==
  
@@ -128, +140 @@

      bsp.waitForCompletion(true);
  }}}
  
- to submit a Hama job. You can just change the {{{BSPJob}}} to 
{{{YARNBSPJob}}}.
+ to submit a Hama job. You can just change the {{{BSPJob}}} to 
{{{YARNBSPJob}}}. If you want to submit graph job of Hama, only change 
{{{BSPJob}}} object to {{{YARNGraphJob}}}.
  

Reply via email to