[
https://issues.apache.org/jira/browse/HAMA-374?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13018293#comment-13018293
]
Edward J. Yoon commented on HAMA-374:
-------------------------------------
{code}
public void init(Configuration conf) throws IOException {
if (conf.get("bsp.master.address") != null) {
this.jobSubmitClient = (JobSubmissionProtocol) RPC.getProxy(
JobSubmissionProtocol.class, JobSubmissionProtocol.versionID,
BSPMaster.getAddress(conf), conf,
NetUtils.getSocketFactory(conf, JobSubmissionProtocol.class));
} else {
this.jobSubmitClient = new LocalBSPRunner(conf);
}
}
{code}
The conf.get("bsp.master.address") returns always "localhost". How to run BSP
job locally?
{code}
edward@slave:~/workspace/hama-trunk$ ant clean package
edward@slave:~/workspace/hama-trunk$ bin/hama jar hama-0.3.0-examples.jar pi
11/04/11 20:15:50 INFO ipc.Client: Retrying connect to server:
localhost/127.0.0.1:40000. Already tried 0 time(s).
{code}
> Add LocalBSPRunner for local testing of BSPs
> --------------------------------------------
>
> Key: HAMA-374
> URL: https://issues.apache.org/jira/browse/HAMA-374
> Project: Hama
> Issue Type: Improvement
> Components: bsp
> Affects Versions: 0.2.0
> Reporter: Thomas Jungblut
> Assignee: Thomas Jungblut
> Priority: Minor
> Fix For: 0.3.0
>
> Attachments: hama-374.patch, hama-374_v2.patch, hama-374_v3.patch,
> hama-374_v4.patch, hama-374_v5.patch, hama-374_v6.patch
>
>
> Wanted to share it with you.
> I already implemented this as a subclass of the JobSubmissionProtocol. Just
> setting the jobSubmitClient in the BSPJobClient to a local version if the
> master adress is null.
> It is a simple single threaded running utility.
> Have a look at it!
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira