How to write a Hama-YARN job
The BSPModel hasn't changed, but the way to submit a job has.
Hama Graph jobs also isn't changed but you should change a little code from
YARNGraphJob to run Hama graph job. Let's show the following link, PageRank on YARN.
Compared to PageRank in existing graph example, this code only is changed from
YARNGraphJob. How to launch graph job on YARN is same as existing graph job.
How to submit a job
You have to ways to submit a job, you can either submit it via shell and a packed jar, or you can submit from a java application. In both cases you need the hama-yarn jar in the classpath or inside the jar to run correctly.
to submit a Hama job. You can just change the
YARNBSPJob. If you want to submit graph job of Hama, only change
BSPJob object to