You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hama.apache.org by "Thomas Jungblut (JIRA)" <ji...@apache.org> on 2011/06/30 21:30:28 UTC

[jira] [Created] (HAMA-409) Add Pregel-like API

Add Pregel-like API
-------------------

                 Key: HAMA-409
                 URL: https://issues.apache.org/jira/browse/HAMA-409
             Project: Hama
          Issue Type: New Feature
          Components: bsp, examples
    Affects Versions: 0.3.0
            Reporter: Thomas Jungblut
             Fix For: 0.4.0


According to what we've discussed on the mailing list, we should add a Pregel-like API.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HAMA-409) Add Pregel-like API

Posted by "Thomas Jungblut (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HAMA-409?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13065159#comment-13065159 ] 

Thomas Jungblut commented on HAMA-409:
--------------------------------------

Yeah that is what I meant, although I dislike the design.

> Add Pregel-like API
> -------------------
>
>                 Key: HAMA-409
>                 URL: https://issues.apache.org/jira/browse/HAMA-409
>             Project: Hama
>          Issue Type: New Feature
>          Components: bsp, examples
>    Affects Versions: 0.3.0
>            Reporter: Thomas Jungblut
>            Assignee: Miklos Erdelyi
>              Labels: graph
>             Fix For: 0.4.0
>
>         Attachments: HAMA-409_v01.patch, HAMA-409_v02.patch, hama-graph.zip
>
>
> According to what we've discussed on the mailing list, we should add a Pregel-like API.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HAMA-409) Add Pregel-like API

Posted by "Edward J. Yoon (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HAMA-409?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13065041#comment-13065041 ] 

Edward J. Yoon commented on HAMA-409:
-------------------------------------

Looks good.

>> Should we extend a GraphComputationJob for this? Don't want to mess up the BSPJob for that.

Like this?

{code}
BSPJob job = new PregelJob(conf);
{code}

> Add Pregel-like API
> -------------------
>
>                 Key: HAMA-409
>                 URL: https://issues.apache.org/jira/browse/HAMA-409
>             Project: Hama
>          Issue Type: New Feature
>          Components: bsp, examples
>    Affects Versions: 0.3.0
>            Reporter: Thomas Jungblut
>            Assignee: Miklos Erdelyi
>              Labels: graph
>             Fix For: 0.4.0
>
>         Attachments: HAMA-409_v01.patch, HAMA-409_v02.patch, hama-graph.zip
>
>
> According to what we've discussed on the mailing list, we should add a Pregel-like API.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Assigned] (HAMA-409) Add Pregel-like API

Posted by "Edward J. Yoon (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HAMA-409?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Edward J. Yoon reassigned HAMA-409:
-----------------------------------

    Assignee: Miklos Erdelyi

> Add Pregel-like API
> -------------------
>
>                 Key: HAMA-409
>                 URL: https://issues.apache.org/jira/browse/HAMA-409
>             Project: Hama
>          Issue Type: New Feature
>          Components: bsp, examples
>    Affects Versions: 0.3.0
>            Reporter: Thomas Jungblut
>            Assignee: Miklos Erdelyi
>              Labels: graph
>             Fix For: 0.4.0
>
>         Attachments: hama-graph.zip
>
>
> According to what we've discussed on the mailing list, we should add a Pregel-like API.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HAMA-409) Add Pregel-like API

Posted by "Edward J. Yoon (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HAMA-409?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13216214#comment-13216214 ] 

Edward J. Yoon commented on HAMA-409:
-------------------------------------

And also, Vertex class reflection seems problematic. I'll fix tomorrow.

Thanks and Enjoy your weekend Thomas!
                
> Add Pregel-like API
> -------------------
>
>                 Key: HAMA-409
>                 URL: https://issues.apache.org/jira/browse/HAMA-409
>             Project: Hama
>          Issue Type: New Feature
>          Components: bsp, examples
>    Affects Versions: 0.4.0
>            Reporter: Thomas Jungblut
>            Assignee: Edward J. Yoon
>              Labels: graph
>             Fix For: 0.5.0
>
>         Attachments: HAMA-409_v01.patch, HAMA-409_v02.patch, HAMA-409_v03.patch, HAMA-409_v04.patch, HAMA-409_v05.patch, InlinkCount.java, hama-graph.zip, pregel_v01.patch, pregel_v02.patch, pregel_v03.patch, test.txt
>
>
> According to what we've discussed on the mailing list, we should add a Pregel-like API.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HAMA-409) Add Pregel-like API

Posted by "Edward J. Yoon (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HAMA-409?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Edward J. Yoon updated HAMA-409:
--------------------------------

    Attachment: HAMA-409_v01.patch

This patch only contains an interfaces and few core codes. Generally looks good.

Here's my few comments.

1. vertexClass and messageValueClass can be defined when configure a Hama job like Map/Reduce e.g., job.setMessageValueClass(LongWritable.class); instead of using constructor. Then, we can program a graph algorithm and configure a job at one class.

2. Let's re-code the In/Output parts.

> Add Pregel-like API
> -------------------
>
>                 Key: HAMA-409
>                 URL: https://issues.apache.org/jira/browse/HAMA-409
>             Project: Hama
>          Issue Type: New Feature
>          Components: bsp, examples
>    Affects Versions: 0.3.0
>            Reporter: Thomas Jungblut
>            Assignee: Miklos Erdelyi
>              Labels: graph
>             Fix For: 0.4.0
>
>         Attachments: HAMA-409_v01.patch, hama-graph.zip
>
>
> According to what we've discussed on the mailing list, we should add a Pregel-like API.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HAMA-409) Add Pregel-like API

Posted by "Edward J. Yoon (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HAMA-409?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13066827#comment-13066827 ] 

Edward J. Yoon commented on HAMA-409:
-------------------------------------

Isn't it called voteToHalt()?

> Add Pregel-like API
> -------------------
>
>                 Key: HAMA-409
>                 URL: https://issues.apache.org/jira/browse/HAMA-409
>             Project: Hama
>          Issue Type: New Feature
>          Components: bsp, examples
>    Affects Versions: 0.3.0
>            Reporter: Thomas Jungblut
>            Assignee: Miklos Erdelyi
>              Labels: graph
>             Fix For: 0.4.0
>
>         Attachments: HAMA-409_v01.patch, HAMA-409_v02.patch, HAMA-409_v03.patch, hama-graph.zip
>
>
> According to what we've discussed on the mailing list, we should add a Pregel-like API.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HAMA-409) Add Pregel-like API

Posted by "Edward J. Yoon (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HAMA-409?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13202405#comment-13202405 ] 

Edward J. Yoon commented on HAMA-409:
-------------------------------------

Maybe I can improve more tomorrow.
                
> Add Pregel-like API
> -------------------
>
>                 Key: HAMA-409
>                 URL: https://issues.apache.org/jira/browse/HAMA-409
>             Project: Hama
>          Issue Type: New Feature
>          Components: bsp, examples
>    Affects Versions: 0.4.0
>            Reporter: Thomas Jungblut
>            Assignee: Edward J. Yoon
>              Labels: graph
>             Fix For: 0.5.0
>
>         Attachments: HAMA-409_v01.patch, HAMA-409_v02.patch, HAMA-409_v03.patch, HAMA-409_v04.patch, HAMA-409_v05.patch, InlinkCount.java, hama-graph.zip, pregel_v01.patch, pregel_v02.patch, test.txt
>
>
> According to what we've discussed on the mailing list, we should add a Pregel-like API.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HAMA-409) Add Pregel-like API

Posted by "Edward J. Yoon (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HAMA-409?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Edward J. Yoon updated HAMA-409:
--------------------------------

    Affects Version/s:     (was: 0.3.0)
                       0.4.0
    
> Add Pregel-like API
> -------------------
>
>                 Key: HAMA-409
>                 URL: https://issues.apache.org/jira/browse/HAMA-409
>             Project: Hama
>          Issue Type: New Feature
>          Components: bsp, examples
>    Affects Versions: 0.4.0
>            Reporter: Thomas Jungblut
>              Labels: graph
>             Fix For: 0.5.0
>
>         Attachments: HAMA-409_v01.patch, HAMA-409_v02.patch, HAMA-409_v03.patch, HAMA-409_v04.patch, HAMA-409_v05.patch, hama-graph.zip, test.txt
>
>
> According to what we've discussed on the mailing list, we should add a Pregel-like API.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Assigned] (HAMA-409) Add Pregel-like API

Posted by "Edward J. Yoon (Assigned) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HAMA-409?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Edward J. Yoon reassigned HAMA-409:
-----------------------------------

    Assignee: Edward J. Yoon  (was: Miklos Erdelyi)
    
> Add Pregel-like API
> -------------------
>
>                 Key: HAMA-409
>                 URL: https://issues.apache.org/jira/browse/HAMA-409
>             Project: Hama
>          Issue Type: New Feature
>          Components: bsp, examples
>    Affects Versions: 0.3.0
>            Reporter: Thomas Jungblut
>            Assignee: Edward J. Yoon
>              Labels: graph
>             Fix For: 0.5.0
>
>         Attachments: HAMA-409_v01.patch, HAMA-409_v02.patch, HAMA-409_v03.patch, HAMA-409_v04.patch, HAMA-409_v05.patch, hama-graph.zip
>
>
> According to what we've discussed on the mailing list, we should add a Pregel-like API.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Reopened] (HAMA-409) Add Pregel-like API

Posted by "Edward J. Yoon (Reopened) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HAMA-409?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Edward J. Yoon reopened HAMA-409:
---------------------------------


Reopen. It doesn't work on distributed mode.
                
> Add Pregel-like API
> -------------------
>
>                 Key: HAMA-409
>                 URL: https://issues.apache.org/jira/browse/HAMA-409
>             Project: Hama
>          Issue Type: New Feature
>          Components: bsp, examples
>    Affects Versions: 0.4.0
>            Reporter: Thomas Jungblut
>            Assignee: Edward J. Yoon
>              Labels: graph
>             Fix For: 0.5.0
>
>         Attachments: HAMA-409_v01.patch, HAMA-409_v02.patch, HAMA-409_v03.patch, HAMA-409_v04.patch, HAMA-409_v05.patch, InlinkCount.java, hama-graph.zip, pregel_v01.patch, pregel_v02.patch, pregel_v03.patch, test.txt
>
>
> According to what we've discussed on the mailing list, we should add a Pregel-like API.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HAMA-409) Add Pregel-like API

Posted by "Thomas Jungblut (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HAMA-409?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13088188#comment-13088188 ] 

Thomas Jungblut commented on HAMA-409:
--------------------------------------

{qoute}
How about we separate this big issue into smaller tasks?
{qoute}

How about splitting it into:

> Create graph module
> Integrate HAMA-423 (Partitioning and vertices)
> Integrate the vertex class to our BSPJob

So we can commit this now...

> Add Pregel-like API
> -------------------
>
>                 Key: HAMA-409
>                 URL: https://issues.apache.org/jira/browse/HAMA-409
>             Project: Hama
>          Issue Type: New Feature
>          Components: bsp, examples
>    Affects Versions: 0.3.0
>            Reporter: Thomas Jungblut
>            Assignee: Miklos Erdelyi
>              Labels: graph
>             Fix For: 0.4.0
>
>         Attachments: HAMA-409_v01.patch, HAMA-409_v02.patch, HAMA-409_v03.patch, HAMA-409_v04.patch, HAMA-409_v05.patch, hama-graph.zip
>
>
> According to what we've discussed on the mailing list, we should add a Pregel-like API.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HAMA-409) Add Pregel-like API

Posted by "Thomas Jungblut (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HAMA-409?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13203382#comment-13203382 ] 

Thomas Jungblut commented on HAMA-409:
--------------------------------------

Yeah, let's add this to trunk.
We can always open new issues regarding improvements.
                
> Add Pregel-like API
> -------------------
>
>                 Key: HAMA-409
>                 URL: https://issues.apache.org/jira/browse/HAMA-409
>             Project: Hama
>          Issue Type: New Feature
>          Components: bsp, examples
>    Affects Versions: 0.4.0
>            Reporter: Thomas Jungblut
>            Assignee: Edward J. Yoon
>              Labels: graph
>             Fix For: 0.5.0
>
>         Attachments: HAMA-409_v01.patch, HAMA-409_v02.patch, HAMA-409_v03.patch, HAMA-409_v04.patch, HAMA-409_v05.patch, InlinkCount.java, hama-graph.zip, pregel_v01.patch, pregel_v02.patch, pregel_v03.patch, test.txt
>
>
> According to what we've discussed on the mailing list, we should add a Pregel-like API.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HAMA-409) Add Pregel-like API

Posted by "Edward J. Yoon (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HAMA-409?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13217034#comment-13217034 ] 

Edward J. Yoon commented on HAMA-409:
-------------------------------------

{code}

12/02/27 13:54:08 DEBUG bsp.Counters: Creating group org.apache.hama.bsp.JobInProgress$JobCounter with nothing
12/02/27 13:54:11 DEBUG bsp.Counters: Creating group org.apache.hama.bsp.JobInProgress$JobCounter with nothing
12/02/27 13:54:11 DEBUG bsp.Counters: Creating group org.apache.hama.bsp.BSPPeerImpl$PeerCounter with nothing
12/02/27 13:54:11 INFO bsp.BSPJobClient: Current supersteps number: 5
12/02/27 13:54:11 DEBUG bsp.Counters: Creating group org.apache.hama.bsp.JobInProgress$JobCounter with nothing
12/02/27 13:54:11 DEBUG bsp.Counters: Creating group org.apache.hama.bsp.BSPPeerImpl$PeerCounter with nothing
12/02/27 13:54:11 DEBUG bsp.Counters: Creating group org.apache.hama.bsp.JobInProgress$JobCounter with nothing
12/02/27 13:54:11 DEBUG bsp.Counters: Creating group org.apache.hama.bsp.BSPPeerImpl$PeerCounter with nothing
12/02/27 13:54:11 INFO bsp.BSPJobClient: The total number of supersteps: 5
12/02/27 13:54:11 DEBUG bsp.Counters: Adding SUPERSTEPS
12/02/27 13:54:11 INFO bsp.BSPJobClient: Counters: 3
12/02/27 13:54:11 INFO bsp.BSPJobClient:   org.apache.hama.bsp.JobInProgress$JobCounter
12/02/27 13:54:11 INFO bsp.BSPJobClient:     LAUNCHED_TASKS=2
12/02/27 13:54:11 INFO bsp.BSPJobClient:   org.apache.hama.bsp.BSPPeerImpl$PeerCounter
12/02/27 13:54:11 INFO bsp.BSPJobClient:     SUPERSTEPS=5
12/02/27 13:54:11 INFO bsp.BSPJobClient:     SUPERSTEP_SUM=5
12/02/27 13:54:11 DEBUG bsp.Counters: Creating group org.apache.hama.bsp.JobInProgress$JobCounter with nothing
12/02/27 13:54:11 DEBUG bsp.Counters: Creating group org.apache.hama.bsp.BSPPeerImpl$PeerCounter with nothing
12/02/27 13:54:11 DEBUG bsp.Counters: Creating group org.apache.hama.bsp.JobInProgress$JobCounter with nothing
12/02/27 13:54:11 DEBUG bsp.Counters: Creating group org.apache.hama.bsp.BSPPeerImpl$PeerCounter with nothing
Job Finished in 3.638 seconds
{code}

Tested on my laptop.
I'm commit to TRUNK directly and will open new ticket for other issues.
                
> Add Pregel-like API
> -------------------
>
>                 Key: HAMA-409
>                 URL: https://issues.apache.org/jira/browse/HAMA-409
>             Project: Hama
>          Issue Type: New Feature
>          Components: bsp, examples
>    Affects Versions: 0.4.0
>            Reporter: Thomas Jungblut
>            Assignee: Edward J. Yoon
>              Labels: graph
>             Fix For: 0.5.0
>
>         Attachments: HAMA-409_v01.patch, HAMA-409_v02.patch, HAMA-409_v03.patch, HAMA-409_v04.patch, HAMA-409_v05.patch, InlinkCount.java, hama-graph.zip, pregel_v01.patch, pregel_v02.patch, pregel_v03.patch, test.txt
>
>
> According to what we've discussed on the mailing list, we should add a Pregel-like API.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (HAMA-409) Add Pregel-like API

Posted by "Edward J. Yoon (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HAMA-409?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Edward J. Yoon resolved HAMA-409.
---------------------------------

    Resolution: Fixed

Graph examples' unit tests are also fixed.

I just closed this issue.
                
> Add Pregel-like API
> -------------------
>
>                 Key: HAMA-409
>                 URL: https://issues.apache.org/jira/browse/HAMA-409
>             Project: Hama
>          Issue Type: New Feature
>          Components: bsp, examples
>    Affects Versions: 0.4.0
>            Reporter: Thomas Jungblut
>            Assignee: Edward J. Yoon
>              Labels: graph
>             Fix For: 0.5.0
>
>         Attachments: HAMA-409_v01.patch, HAMA-409_v02.patch, HAMA-409_v03.patch, HAMA-409_v04.patch, HAMA-409_v05.patch, InlinkCount.java, hama-graph.zip, pregel_v01.patch, pregel_v02.patch, pregel_v03.patch, test.txt
>
>
> According to what we've discussed on the mailing list, we should add a Pregel-like API.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HAMA-409) Add Pregel-like API

Posted by "Edward J. Yoon (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HAMA-409?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13170009#comment-13170009 ] 

Edward J. Yoon commented on HAMA-409:
-------------------------------------

I'd like to add this feature to 0.4 even if it's not perfect or simple. 

I noticed that many people who are unfamiliar with internals recognizes this as one of the main difference between others and the weakness of our project. :/
                
> Add Pregel-like API
> -------------------
>
>                 Key: HAMA-409
>                 URL: https://issues.apache.org/jira/browse/HAMA-409
>             Project: Hama
>          Issue Type: New Feature
>          Components: bsp, examples
>    Affects Versions: 0.3.0
>            Reporter: Thomas Jungblut
>            Assignee: Edward J. Yoon
>              Labels: graph
>             Fix For: 0.5.0
>
>         Attachments: HAMA-409_v01.patch, HAMA-409_v02.patch, HAMA-409_v03.patch, HAMA-409_v04.patch, HAMA-409_v05.patch, hama-graph.zip
>
>
> According to what we've discussed on the mailing list, we should add a Pregel-like API.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HAMA-409) Add Pregel-like API

Posted by "Edward J. Yoon (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HAMA-409?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13065062#comment-13065062 ] 

Edward J. Yoon commented on HAMA-409:
-------------------------------------

Yeah, it's a hard to decision.

I think, we should consider about the integrated management and consistent job configuration interface. Maybe another computing framework on top of Hama BSP can be added.

> Add Pregel-like API
> -------------------
>
>                 Key: HAMA-409
>                 URL: https://issues.apache.org/jira/browse/HAMA-409
>             Project: Hama
>          Issue Type: New Feature
>          Components: bsp, examples
>    Affects Versions: 0.3.0
>            Reporter: Thomas Jungblut
>            Assignee: Miklos Erdelyi
>              Labels: graph
>             Fix For: 0.4.0
>
>         Attachments: HAMA-409_v01.patch, HAMA-409_v02.patch, hama-graph.zip
>
>
> According to what we've discussed on the mailing list, we should add a Pregel-like API.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Assigned] (HAMA-409) Add Pregel-like API

Posted by "Edward J. Yoon (Assigned) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HAMA-409?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Edward J. Yoon reassigned HAMA-409:
-----------------------------------

    Assignee: Edward J. Yoon
    
> Add Pregel-like API
> -------------------
>
>                 Key: HAMA-409
>                 URL: https://issues.apache.org/jira/browse/HAMA-409
>             Project: Hama
>          Issue Type: New Feature
>          Components: bsp, examples
>    Affects Versions: 0.4.0
>            Reporter: Thomas Jungblut
>            Assignee: Edward J. Yoon
>              Labels: graph
>             Fix For: 0.5.0
>
>         Attachments: HAMA-409_v01.patch, HAMA-409_v02.patch, HAMA-409_v03.patch, HAMA-409_v04.patch, HAMA-409_v05.patch, hama-graph.zip, pregel_v01.patch, test.txt
>
>
> According to what we've discussed on the mailing list, we should add a Pregel-like API.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Issue Comment Edited] (HAMA-409) Add Pregel-like API

Posted by "Thomas Jungblut (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HAMA-409?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13064714#comment-13064714 ] 

Thomas Jungblut edited comment on HAMA-409 at 7/13/11 6:05 PM:
---------------------------------------------------------------

* Added a generic message with classcaching
* Refactored to generic messaging

And a design question: What do you think about just instantiating one message and then while iterating do the deserialization "one the fly"? This will greatly reduce GC and reflections overhead.

I add the voteForHalt() method tomorrow.

EDIT:
added a testcase for the generic messaging. As Edward mentioned, we should add a job.setMessageValueClass(X.class). Should we extend a GraphComputationJob for this? Don't want to mess up the BSPJob for that.


      was (Author: thomas.jungblut):
    * Added a generic message with classcaching
* Refactored to generic messaging

There is one design issue I have in usage is the call of super(Vertex.class) in a concrete implementation.

And a design question: What do you think about just instantiating one message and then while iterating do the deserialization "one the fly"? This will greatly reduce GC and reflections overhead.

I add the voteForHalt() method tomorrow.
  
> Add Pregel-like API
> -------------------
>
>                 Key: HAMA-409
>                 URL: https://issues.apache.org/jira/browse/HAMA-409
>             Project: Hama
>          Issue Type: New Feature
>          Components: bsp, examples
>    Affects Versions: 0.3.0
>            Reporter: Thomas Jungblut
>            Assignee: Miklos Erdelyi
>              Labels: graph
>             Fix For: 0.4.0
>
>         Attachments: HAMA-409_v01.patch, HAMA-409_v02.patch, hama-graph.zip
>
>
> According to what we've discussed on the mailing list, we should add a Pregel-like API.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HAMA-409) Add Pregel-like API

Posted by "Edward J. Yoon (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HAMA-409?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Edward J. Yoon updated HAMA-409:
--------------------------------

    Status: Open  (was: Patch Available)

zip file shouldn't submitted to hudson. I'll upload new patch for this.

> Add Pregel-like API
> -------------------
>
>                 Key: HAMA-409
>                 URL: https://issues.apache.org/jira/browse/HAMA-409
>             Project: Hama
>          Issue Type: New Feature
>          Components: bsp, examples
>    Affects Versions: 0.3.0
>            Reporter: Thomas Jungblut
>            Assignee: Miklos Erdelyi
>              Labels: graph
>             Fix For: 0.4.0
>
>         Attachments: hama-graph.zip
>
>
> According to what we've discussed on the mailing list, we should add a Pregel-like API.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HAMA-409) Add Pregel-like API

Posted by "Edward J. Yoon (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HAMA-409?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Edward J. Yoon updated HAMA-409:
--------------------------------

    Attachment: HAMA-409_v04.patch

I renamed methods

 - voteForHalt -> voteToHalt
 - outEdgeIterator -> getOutEdgeIterator 

> Add Pregel-like API
> -------------------
>
>                 Key: HAMA-409
>                 URL: https://issues.apache.org/jira/browse/HAMA-409
>             Project: Hama
>          Issue Type: New Feature
>          Components: bsp, examples
>    Affects Versions: 0.3.0
>            Reporter: Thomas Jungblut
>            Assignee: Miklos Erdelyi
>              Labels: graph
>             Fix For: 0.4.0
>
>         Attachments: HAMA-409_v01.patch, HAMA-409_v02.patch, HAMA-409_v03.patch, HAMA-409_v04.patch, hama-graph.zip
>
>
> According to what we've discussed on the mailing list, we should add a Pregel-like API.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HAMA-409) Add Pregel-like API

Posted by "Edward J. Yoon (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HAMA-409?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Edward J. Yoon updated HAMA-409:
--------------------------------

    Attachment: pregel_v02.patch

This v02 patch replaces PageRank example, too.

Please review about Interfaces.
                
> Add Pregel-like API
> -------------------
>
>                 Key: HAMA-409
>                 URL: https://issues.apache.org/jira/browse/HAMA-409
>             Project: Hama
>          Issue Type: New Feature
>          Components: bsp, examples
>    Affects Versions: 0.4.0
>            Reporter: Thomas Jungblut
>            Assignee: Edward J. Yoon
>              Labels: graph
>             Fix For: 0.5.0
>
>         Attachments: HAMA-409_v01.patch, HAMA-409_v02.patch, HAMA-409_v03.patch, HAMA-409_v04.patch, HAMA-409_v05.patch, hama-graph.zip, pregel_v01.patch, pregel_v02.patch, test.txt
>
>
> According to what we've discussed on the mailing list, we should add a Pregel-like API.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HAMA-409) Add Pregel-like API

Posted by "Miklos Erdelyi (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HAMA-409?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Miklos Erdelyi updated HAMA-409:
--------------------------------

    Comment: was deleted

(was: A comment with security level 'jira-users' was removed.)

> Add Pregel-like API
> -------------------
>
>                 Key: HAMA-409
>                 URL: https://issues.apache.org/jira/browse/HAMA-409
>             Project: Hama
>          Issue Type: New Feature
>          Components: bsp, examples
>    Affects Versions: 0.3.0
>            Reporter: Thomas Jungblut
>              Labels: graph
>             Fix For: 0.4.0
>
>         Attachments: hama-graph.zip
>
>
> According to what we've discussed on the mailing list, we should add a Pregel-like API.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HAMA-409) Add Pregel-like API

Posted by "Edward J. Yoon (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HAMA-409?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Edward J. Yoon updated HAMA-409:
--------------------------------

    Attachment: pregel_v03.patch

args.length checker added and replaced compute parameter like:

{code}
public void compute(Iterator<MSGTYPE> messages) throws IOException;
{code}

Others are little related with HAMA-502 and new APIs.

I'm going to add this to trunk. What do you think?
                
> Add Pregel-like API
> -------------------
>
>                 Key: HAMA-409
>                 URL: https://issues.apache.org/jira/browse/HAMA-409
>             Project: Hama
>          Issue Type: New Feature
>          Components: bsp, examples
>    Affects Versions: 0.4.0
>            Reporter: Thomas Jungblut
>            Assignee: Edward J. Yoon
>              Labels: graph
>             Fix For: 0.5.0
>
>         Attachments: HAMA-409_v01.patch, HAMA-409_v02.patch, HAMA-409_v03.patch, HAMA-409_v04.patch, HAMA-409_v05.patch, InlinkCount.java, hama-graph.zip, pregel_v01.patch, pregel_v02.patch, pregel_v03.patch, test.txt
>
>
> According to what we've discussed on the mailing list, we should add a Pregel-like API.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HAMA-409) Add Pregel-like API

Posted by "Thomas Jungblut (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HAMA-409?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thomas Jungblut updated HAMA-409:
---------------------------------

    Attachment:     (was: HAMA-409_v02.patch)

> Add Pregel-like API
> -------------------
>
>                 Key: HAMA-409
>                 URL: https://issues.apache.org/jira/browse/HAMA-409
>             Project: Hama
>          Issue Type: New Feature
>          Components: bsp, examples
>    Affects Versions: 0.3.0
>            Reporter: Thomas Jungblut
>            Assignee: Miklos Erdelyi
>              Labels: graph
>             Fix For: 0.4.0
>
>         Attachments: HAMA-409_v01.patch, hama-graph.zip
>
>
> According to what we've discussed on the mailing list, we should add a Pregel-like API.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HAMA-409) Add Pregel-like API

Posted by "Miklos Erdelyi (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HAMA-409?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Miklos Erdelyi updated HAMA-409:
--------------------------------

    Labels: graph  (was: )
    Status: Patch Available  (was: Open)

> Add Pregel-like API
> -------------------
>
>                 Key: HAMA-409
>                 URL: https://issues.apache.org/jira/browse/HAMA-409
>             Project: Hama
>          Issue Type: New Feature
>          Components: bsp, examples
>    Affects Versions: 0.3.0
>            Reporter: Thomas Jungblut
>              Labels: graph
>             Fix For: 0.4.0
>
>
> According to what we've discussed on the mailing list, we should add a Pregel-like API.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HAMA-409) Add Pregel-like API

Posted by "Edward J. Yoon (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HAMA-409?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Edward J. Yoon updated HAMA-409:
--------------------------------

    Attachment: pregel_v01.patch

This patch replaces SSSP example to GraphJobRunner based.

                
> Add Pregel-like API
> -------------------
>
>                 Key: HAMA-409
>                 URL: https://issues.apache.org/jira/browse/HAMA-409
>             Project: Hama
>          Issue Type: New Feature
>          Components: bsp, examples
>    Affects Versions: 0.4.0
>            Reporter: Thomas Jungblut
>              Labels: graph
>             Fix For: 0.5.0
>
>         Attachments: HAMA-409_v01.patch, HAMA-409_v02.patch, HAMA-409_v03.patch, HAMA-409_v04.patch, HAMA-409_v05.patch, hama-graph.zip, pregel_v01.patch, test.txt
>
>
> According to what we've discussed on the mailing list, we should add a Pregel-like API.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HAMA-409) Add Pregel-like API

Posted by "Thomas Jungblut (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HAMA-409?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thomas Jungblut updated HAMA-409:
---------------------------------

    Attachment: HAMA-409_v03.patch

actually this should be version 3

> Add Pregel-like API
> -------------------
>
>                 Key: HAMA-409
>                 URL: https://issues.apache.org/jira/browse/HAMA-409
>             Project: Hama
>          Issue Type: New Feature
>          Components: bsp, examples
>    Affects Versions: 0.3.0
>            Reporter: Thomas Jungblut
>            Assignee: Miklos Erdelyi
>              Labels: graph
>             Fix For: 0.4.0
>
>         Attachments: HAMA-409_v01.patch, HAMA-409_v02.patch, HAMA-409_v03.patch, hama-graph.zip
>
>
> According to what we've discussed on the mailing list, we should add a Pregel-like API.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HAMA-409) Add Pregel-like API

Posted by "Thomas Jungblut (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HAMA-409?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13105872#comment-13105872 ] 

Thomas Jungblut commented on HAMA-409:
--------------------------------------

Hey guys, what is going on here? Should we split the task? Commit it?
What's the current state?

> Add Pregel-like API
> -------------------
>
>                 Key: HAMA-409
>                 URL: https://issues.apache.org/jira/browse/HAMA-409
>             Project: Hama
>          Issue Type: New Feature
>          Components: bsp, examples
>    Affects Versions: 0.3.0
>            Reporter: Thomas Jungblut
>            Assignee: Miklos Erdelyi
>              Labels: graph
>             Fix For: 0.4.0
>
>         Attachments: HAMA-409_v01.patch, HAMA-409_v02.patch, HAMA-409_v03.patch, HAMA-409_v04.patch, HAMA-409_v05.patch, hama-graph.zip
>
>
> According to what we've discussed on the mailing list, we should add a Pregel-like API.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HAMA-409) Add Pregel-like API

Posted by "Miklos Erdelyi (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HAMA-409?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13063739#comment-13063739 ] 

Miklos Erdelyi commented on HAMA-409:
-------------------------------------


To get HAMA graph running from the attached archive please follow the below steps:
1) Unzip the archive in the root of a freshly checked out HAMA trunk.

2) Get fastutil (http://fastutil.dsi.unimi.it/) and put its jar under ${basedir}/lib. I needed to put two other dependencies there because I could not find them in a public maven repository (dsiutils and webgraph).

3) To run the example inlink counter hama-graph job, invoke:
java org.apache.hama.graph.GraphComputeRunner <path-to-partitioned-graph>/ <number-of-partitions> org.apache.hama.graph.examples.InlinkCountComputer <max-iterations>

All the dependencies need to be on the classpath including the used HAMA distribution's config directory. The partitioned graph needs to be accessible through NFS on all the cluster nodes.

A few thoughts on current implementation:

a) Graph input
Currently HipG's (www.cs.vu.nl/~ekr/hipg/) segmented graph loader is used for loading partitioned graphs. A conversion util is provided (org.apache.hama.graph.format.ConvertFromWebGraphASCII.java) which can convert from WebGraph's (http://webgraph.dsi.unimi.it/) ASCII format into the segmented graph format.

This mechanism should be replaced with a builder-like approach employed by e.g. GoldenOrb: based on some input specification a factory class dependent on the input format of the graph should load vertexes into memory.
A good approach would be letting workers load data-local segments of the graph and do a partition-worker assignment based on data-locality, after which loaded vertexes not belonging to one worker's partition(s) could be sent to the proper workers via network.

b) Message buffering
In the current implementation messages are grouped by vertexes after a new superstep starts, i.e., VertexComputerGeneric iterates through all messages recevied by the BSPPeer and puts them into the queue of respective vertexes.
This memory copying could be avoided by letting the BSP framework do the grouping while receiving the messages, i.e., by grouping messages by tag such that messages intended for the same vertex ID will have the same tag.

c) Output
Currently nothing is output from the vertexes. However, it would be relatively easy to add, e.g., by requiring that the Vertex class implement Writable and serializing all vertexes at the end of certain supersteps. This would be a step towards fault-tolerance too.


> Add Pregel-like API
> -------------------
>
>                 Key: HAMA-409
>                 URL: https://issues.apache.org/jira/browse/HAMA-409
>             Project: Hama
>          Issue Type: New Feature
>          Components: bsp, examples
>    Affects Versions: 0.3.0
>            Reporter: Thomas Jungblut
>              Labels: graph
>             Fix For: 0.4.0
>
>         Attachments: hama-graph.zip
>
>
> According to what we've discussed on the mailing list, we should add a Pregel-like API.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HAMA-409) Add Pregel-like API

Posted by "Edward J. Yoon (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HAMA-409?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13071488#comment-13071488 ] 

Edward J. Yoon commented on HAMA-409:
-------------------------------------

Miklos seems busy. How about we separate this big issue into smaller tasks?

> Add Pregel-like API
> -------------------
>
>                 Key: HAMA-409
>                 URL: https://issues.apache.org/jira/browse/HAMA-409
>             Project: Hama
>          Issue Type: New Feature
>          Components: bsp, examples
>    Affects Versions: 0.3.0
>            Reporter: Thomas Jungblut
>            Assignee: Miklos Erdelyi
>              Labels: graph
>             Fix For: 0.4.0
>
>         Attachments: HAMA-409_v01.patch, HAMA-409_v02.patch, HAMA-409_v03.patch, HAMA-409_v04.patch, hama-graph.zip
>
>
> According to what we've discussed on the mailing list, we should add a Pregel-like API.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HAMA-409) Add Pregel-like API

Posted by "Thomas Jungblut (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HAMA-409?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thomas Jungblut updated HAMA-409:
---------------------------------

    Attachment: HAMA-409_v05.patch

Updated to current revision 1159872.

Several things to do:

-Integrate the vertices and partitioners of HAMA-423.
-Integrate the vertex class to our BSPJob
-Get rid of the ZooKeeper stuff in the PartitionManager and ComputeRunner
->Extract a graph module for maven

> Add Pregel-like API
> -------------------
>
>                 Key: HAMA-409
>                 URL: https://issues.apache.org/jira/browse/HAMA-409
>             Project: Hama
>          Issue Type: New Feature
>          Components: bsp, examples
>    Affects Versions: 0.3.0
>            Reporter: Thomas Jungblut
>            Assignee: Miklos Erdelyi
>              Labels: graph
>             Fix For: 0.4.0
>
>         Attachments: HAMA-409_v01.patch, HAMA-409_v02.patch, HAMA-409_v03.patch, HAMA-409_v04.patch, HAMA-409_v05.patch, hama-graph.zip
>
>
> According to what we've discussed on the mailing list, we should add a Pregel-like API.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HAMA-409) Add Pregel-like API

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HAMA-409?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13064286#comment-13064286 ] 

Hudson commented on HAMA-409:
-----------------------------

-1 overall.  Here are the results of testing the latest attachment 
http://issues.apache.org/jira/secure/attachment/12486149/hama-graph.zip
against trunk revision 1143241.

    @author +1.  The patch does not contain any @author tags.

    tests included +1.  The patch appears to include 8 new or modified tests.

    patch -1.  The patch command could not apply the patch.

Console output: http://builds.apache.org/hudson/job/Hama-Patch/345/console

This message is automatically generated.

> Add Pregel-like API
> -------------------
>
>                 Key: HAMA-409
>                 URL: https://issues.apache.org/jira/browse/HAMA-409
>             Project: Hama
>          Issue Type: New Feature
>          Components: bsp, examples
>    Affects Versions: 0.3.0
>            Reporter: Thomas Jungblut
>            Assignee: Miklos Erdelyi
>              Labels: graph
>             Fix For: 0.4.0
>
>         Attachments: hama-graph.zip
>
>
> According to what we've discussed on the mailing list, we should add a Pregel-like API.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HAMA-409) Add Pregel-like API

Posted by "Edward J. Yoon (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HAMA-409?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13064308#comment-13064308 ] 

Edward J. Yoon commented on HAMA-409:
-------------------------------------

{code}
 * Graph transitions.
 * 
 * @author ela, ekr@cs.vu.nl
 * 
 * @param <TNode>
{code}

Where this code came from? We should remove all GNU/GPL codes.

> Add Pregel-like API
> -------------------
>
>                 Key: HAMA-409
>                 URL: https://issues.apache.org/jira/browse/HAMA-409
>             Project: Hama
>          Issue Type: New Feature
>          Components: bsp, examples
>    Affects Versions: 0.3.0
>            Reporter: Thomas Jungblut
>            Assignee: Miklos Erdelyi
>              Labels: graph
>             Fix For: 0.4.0
>
>         Attachments: hama-graph.zip
>
>
> According to what we've discussed on the mailing list, we should add a Pregel-like API.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HAMA-409) Add Pregel-like API

Posted by "Thomas Jungblut (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HAMA-409?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13065057#comment-13065057 ] 

Thomas Jungblut commented on HAMA-409:
--------------------------------------

This is a hard decision.

I think we should keep the "BSPJob", and just extend a "HamaJob" which has the Pregel API.
So we keep the BSP engine under the hood and available for matrix computation (which we can replace with something like "thinking like a vector" haha).

I would not rename it to "Job" solely since we have Hadoop in our classpath, this would just let everybody think that we're something similar like hive or pig once again. With "HamaJob" we can leech the fame of the PregelAPI and establish our name within :D

Since we give an iterator to the compute function we should consider using just one instance of the message and refill it. I did too extensive use of reflections then and it is causing so much GC. This should be possible when setting the messagevalue class and vertex class. 

> Add Pregel-like API
> -------------------
>
>                 Key: HAMA-409
>                 URL: https://issues.apache.org/jira/browse/HAMA-409
>             Project: Hama
>          Issue Type: New Feature
>          Components: bsp, examples
>    Affects Versions: 0.3.0
>            Reporter: Thomas Jungblut
>            Assignee: Miklos Erdelyi
>              Labels: graph
>             Fix For: 0.4.0
>
>         Attachments: HAMA-409_v01.patch, HAMA-409_v02.patch, hama-graph.zip
>
>
> According to what we've discussed on the mailing list, we should add a Pregel-like API.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Issue Comment Edited] (HAMA-409) Add Pregel-like API

Posted by "Thomas Jungblut (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HAMA-409?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13065159#comment-13065159 ] 

Thomas Jungblut edited comment on HAMA-409 at 7/14/11 6:25 PM:
---------------------------------------------------------------

Yeah that is what I meant, although I dislike the design.

EDIT:
Sorry I have to delay the voteforhalt method and refactoring to tomorrow. 
Please discard the last patch, this wasn't build on linux. I'll have my ubuntu machine back tomorrow.

      was (Author: thomas.jungblut):
    Yeah that is what I meant, although I dislike the design.
  
> Add Pregel-like API
> -------------------
>
>                 Key: HAMA-409
>                 URL: https://issues.apache.org/jira/browse/HAMA-409
>             Project: Hama
>          Issue Type: New Feature
>          Components: bsp, examples
>    Affects Versions: 0.3.0
>            Reporter: Thomas Jungblut
>            Assignee: Miklos Erdelyi
>              Labels: graph
>             Fix For: 0.4.0
>
>         Attachments: HAMA-409_v01.patch, HAMA-409_v02.patch, hama-graph.zip
>
>
> According to what we've discussed on the mailing list, we should add a Pregel-like API.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HAMA-409) Add Pregel-like API

Posted by "Thomas Jungblut (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HAMA-409?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13065092#comment-13065092 ] 

Thomas Jungblut commented on HAMA-409:
--------------------------------------

{quote}
I think, we should consider about the integrated management and consistent job configuration interface
{quote}

-1, I don't think this is good encapsulation.

But we can actually add job.setVertexClass(Blahblah.class), if this is set we can automatically set the ComputeGenericBSP/Pregel BSP.
If the user decides to override this with his own ComputationStuff, he should feel free to do so. But I don't think this is needed by Matrixcomputation.

> Add Pregel-like API
> -------------------
>
>                 Key: HAMA-409
>                 URL: https://issues.apache.org/jira/browse/HAMA-409
>             Project: Hama
>          Issue Type: New Feature
>          Components: bsp, examples
>    Affects Versions: 0.3.0
>            Reporter: Thomas Jungblut
>            Assignee: Miklos Erdelyi
>              Labels: graph
>             Fix For: 0.4.0
>
>         Attachments: HAMA-409_v01.patch, HAMA-409_v02.patch, hama-graph.zip
>
>
> According to what we've discussed on the mailing list, we should add a Pregel-like API.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HAMA-409) Add Pregel-like API

Posted by "Thomas Jungblut (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HAMA-409?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thomas Jungblut updated HAMA-409:
---------------------------------

    Attachment: HAMA-409_v02.patch

* Added a generic message with classcaching
* Refactored to generic messaging

There is one design issue I have in usage is the call of super(Vertex.class) in a concrete implementation.

And a design question: What do you think about just instantiating one message and then while iterating do the deserialization "one the fly"? This will greatly reduce GC and reflections overhead.

I add the voteForHalt() method tomorrow.

> Add Pregel-like API
> -------------------
>
>                 Key: HAMA-409
>                 URL: https://issues.apache.org/jira/browse/HAMA-409
>             Project: Hama
>          Issue Type: New Feature
>          Components: bsp, examples
>    Affects Versions: 0.3.0
>            Reporter: Thomas Jungblut
>            Assignee: Miklos Erdelyi
>              Labels: graph
>             Fix For: 0.4.0
>
>         Attachments: HAMA-409_v01.patch, HAMA-409_v02.patch, hama-graph.zip
>
>
> According to what we've discussed on the mailing list, we should add a Pregel-like API.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HAMA-409) Add Pregel-like API

Posted by "Thomas Jungblut (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HAMA-409?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13215717#comment-13215717 ] 

Thomas Jungblut commented on HAMA-409:
--------------------------------------

I believe it is because of the updated condition.

In each task you are going through a part of the graph and check if they send some messages, if no message is sent, you leave the loop.
I guess this causes a lock in the barrier sync, because not all tasks are reaching it then.

We had similar problems with SSSP and Pagerank in the beginning ;)
We could use counters to check if vertices have been updated globally (HAMA-515). Or we have to manage this be messaging like in SSSP we had before.
                
> Add Pregel-like API
> -------------------
>
>                 Key: HAMA-409
>                 URL: https://issues.apache.org/jira/browse/HAMA-409
>             Project: Hama
>          Issue Type: New Feature
>          Components: bsp, examples
>    Affects Versions: 0.4.0
>            Reporter: Thomas Jungblut
>            Assignee: Edward J. Yoon
>              Labels: graph
>             Fix For: 0.5.0
>
>         Attachments: HAMA-409_v01.patch, HAMA-409_v02.patch, HAMA-409_v03.patch, HAMA-409_v04.patch, HAMA-409_v05.patch, InlinkCount.java, hama-graph.zip, pregel_v01.patch, pregel_v02.patch, pregel_v03.patch, test.txt
>
>
> According to what we've discussed on the mailing list, we should add a Pregel-like API.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HAMA-409) Add Pregel-like API

Posted by "Thomas Jungblut (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HAMA-409?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thomas Jungblut updated HAMA-409:
---------------------------------

    Attachment: InlinkCount.java

Here's my inlink count. 
Now I know why there is this getValue(). 
                
> Add Pregel-like API
> -------------------
>
>                 Key: HAMA-409
>                 URL: https://issues.apache.org/jira/browse/HAMA-409
>             Project: Hama
>          Issue Type: New Feature
>          Components: bsp, examples
>    Affects Versions: 0.4.0
>            Reporter: Thomas Jungblut
>            Assignee: Edward J. Yoon
>              Labels: graph
>             Fix For: 0.5.0
>
>         Attachments: HAMA-409_v01.patch, HAMA-409_v02.patch, HAMA-409_v03.patch, HAMA-409_v04.patch, HAMA-409_v05.patch, InlinkCount.java, hama-graph.zip, pregel_v01.patch, pregel_v02.patch, test.txt
>
>
> According to what we've discussed on the mailing list, we should add a Pregel-like API.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HAMA-409) Add Pregel-like API

Posted by "Thomas Jungblut (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HAMA-409?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13202185#comment-13202185 ] 

Thomas Jungblut commented on HAMA-409:
--------------------------------------

This looks cool! I have a closer look later when I'm in my lecture. 
Let's translate pagerank as well and add inlink count from Miklos.
                
> Add Pregel-like API
> -------------------
>
>                 Key: HAMA-409
>                 URL: https://issues.apache.org/jira/browse/HAMA-409
>             Project: Hama
>          Issue Type: New Feature
>          Components: bsp, examples
>    Affects Versions: 0.4.0
>            Reporter: Thomas Jungblut
>            Assignee: Edward J. Yoon
>              Labels: graph
>             Fix For: 0.5.0
>
>         Attachments: HAMA-409_v01.patch, HAMA-409_v02.patch, HAMA-409_v03.patch, HAMA-409_v04.patch, HAMA-409_v05.patch, hama-graph.zip, pregel_v01.patch, test.txt
>
>
> According to what we've discussed on the mailing list, we should add a Pregel-like API.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HAMA-409) Add Pregel-like API

Posted by "Edward J. Yoon (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HAMA-409?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13063751#comment-13063751 ] 

Edward J. Yoon commented on HAMA-409:
-------------------------------------

Minor comment, we should remove all "a) Graph input" related code and GNU licensed libraries.

> Add Pregel-like API
> -------------------
>
>                 Key: HAMA-409
>                 URL: https://issues.apache.org/jira/browse/HAMA-409
>             Project: Hama
>          Issue Type: New Feature
>          Components: bsp, examples
>    Affects Versions: 0.3.0
>            Reporter: Thomas Jungblut
>            Assignee: Miklos Erdelyi
>              Labels: graph
>             Fix For: 0.4.0
>
>         Attachments: hama-graph.zip
>
>
> According to what we've discussed on the mailing list, we should add a Pregel-like API.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Assigned] (HAMA-409) Add Pregel-like API

Posted by "Edward J. Yoon (Assigned) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HAMA-409?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Edward J. Yoon reassigned HAMA-409:
-----------------------------------

    Assignee:     (was: Edward J. Yoon)
    
> Add Pregel-like API
> -------------------
>
>                 Key: HAMA-409
>                 URL: https://issues.apache.org/jira/browse/HAMA-409
>             Project: Hama
>          Issue Type: New Feature
>          Components: bsp, examples
>    Affects Versions: 0.3.0
>            Reporter: Thomas Jungblut
>              Labels: graph
>             Fix For: 0.5.0
>
>         Attachments: HAMA-409_v01.patch, HAMA-409_v02.patch, HAMA-409_v03.patch, HAMA-409_v04.patch, HAMA-409_v05.patch, hama-graph.zip
>
>
> According to what we've discussed on the mailing list, we should add a Pregel-like API.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HAMA-409) Add Pregel-like API

Posted by "Thomas Jungblut (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HAMA-409?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thomas Jungblut updated HAMA-409:
---------------------------------

    Attachment:     (was: HAMA-409.patch)

> Add Pregel-like API
> -------------------
>
>                 Key: HAMA-409
>                 URL: https://issues.apache.org/jira/browse/HAMA-409
>             Project: Hama
>          Issue Type: New Feature
>          Components: bsp, examples
>    Affects Versions: 0.3.0
>            Reporter: Thomas Jungblut
>            Assignee: Miklos Erdelyi
>              Labels: graph
>             Fix For: 0.4.0
>
>         Attachments: HAMA-409_v01.patch, HAMA-409_v02.patch, HAMA-409_v03.patch, hama-graph.zip
>
>
> According to what we've discussed on the mailing list, we should add a Pregel-like API.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HAMA-409) Add Pregel-like API

Posted by "Edward J. Yoon (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HAMA-409?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13106044#comment-13106044 ] 

Edward J. Yoon commented on HAMA-409:
-------------------------------------

Let's add basic interfaces first. I'll do.

> Add Pregel-like API
> -------------------
>
>                 Key: HAMA-409
>                 URL: https://issues.apache.org/jira/browse/HAMA-409
>             Project: Hama
>          Issue Type: New Feature
>          Components: bsp, examples
>    Affects Versions: 0.3.0
>            Reporter: Thomas Jungblut
>            Assignee: Miklos Erdelyi
>              Labels: graph
>             Fix For: 0.4.0
>
>         Attachments: HAMA-409_v01.patch, HAMA-409_v02.patch, HAMA-409_v03.patch, HAMA-409_v04.patch, HAMA-409_v05.patch, hama-graph.zip
>
>
> According to what we've discussed on the mailing list, we should add a Pregel-like API.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HAMA-409) Add Pregel-like API

Posted by "Edward J. Yoon (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HAMA-409?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13065042#comment-13065042 ] 

Edward J. Yoon commented on HAMA-409:
-------------------------------------

I think, we should re-name the BSPJob to just Job or HamaJob.

> Add Pregel-like API
> -------------------
>
>                 Key: HAMA-409
>                 URL: https://issues.apache.org/jira/browse/HAMA-409
>             Project: Hama
>          Issue Type: New Feature
>          Components: bsp, examples
>    Affects Versions: 0.3.0
>            Reporter: Thomas Jungblut
>            Assignee: Miklos Erdelyi
>              Labels: graph
>             Fix For: 0.4.0
>
>         Attachments: HAMA-409_v01.patch, HAMA-409_v02.patch, hama-graph.zip
>
>
> According to what we've discussed on the mailing list, we should add a Pregel-like API.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HAMA-409) Add Pregel-like API

Posted by "Thomas Jungblut (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HAMA-409?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13066828#comment-13066828 ] 

Thomas Jungblut commented on HAMA-409:
--------------------------------------

Don't have the paper anymore :(
Would you mind to correct this if it is really voteToHalt()?^^

> Add Pregel-like API
> -------------------
>
>                 Key: HAMA-409
>                 URL: https://issues.apache.org/jira/browse/HAMA-409
>             Project: Hama
>          Issue Type: New Feature
>          Components: bsp, examples
>    Affects Versions: 0.3.0
>            Reporter: Thomas Jungblut
>            Assignee: Miklos Erdelyi
>              Labels: graph
>             Fix For: 0.4.0
>
>         Attachments: HAMA-409_v01.patch, HAMA-409_v02.patch, HAMA-409_v03.patch, hama-graph.zip
>
>
> According to what we've discussed on the mailing list, we should add a Pregel-like API.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Issue Comment Edited] (HAMA-409) Add Pregel-like API

Posted by "Thomas Jungblut (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HAMA-409?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13064714#comment-13064714 ] 

Thomas Jungblut edited comment on HAMA-409 at 7/13/11 7:01 PM:
---------------------------------------------------------------

* Added a generic message with classcaching
* Refactored to generic messaging

I add the voteForHalt() method tomorrow.

EDIT:
added a testcase for the generic messaging. As Edward mentioned, we should add a job.setMessageValueClass(X.class). Should we extend a GraphComputationJob for this? Don't want to mess up the BSPJob for that.


      was (Author: thomas.jungblut):
    * Added a generic message with classcaching
* Refactored to generic messaging

And a design question: What do you think about just instantiating one message and then while iterating do the deserialization "one the fly"? This will greatly reduce GC and reflections overhead.

I add the voteForHalt() method tomorrow.

EDIT:
added a testcase for the generic messaging. As Edward mentioned, we should add a job.setMessageValueClass(X.class). Should we extend a GraphComputationJob for this? Don't want to mess up the BSPJob for that.

  
> Add Pregel-like API
> -------------------
>
>                 Key: HAMA-409
>                 URL: https://issues.apache.org/jira/browse/HAMA-409
>             Project: Hama
>          Issue Type: New Feature
>          Components: bsp, examples
>    Affects Versions: 0.3.0
>            Reporter: Thomas Jungblut
>            Assignee: Miklos Erdelyi
>              Labels: graph
>             Fix For: 0.4.0
>
>         Attachments: HAMA-409_v01.patch, HAMA-409_v02.patch, hama-graph.zip
>
>
> According to what we've discussed on the mailing list, we should add a Pregel-like API.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HAMA-409) Add Pregel-like API

Posted by "Thomas Jungblut (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HAMA-409?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thomas Jungblut updated HAMA-409:
---------------------------------

    Attachment: HAMA-409.patch

Okay next try, this time under ubuntu.

- voteForHalt() is added to the vertex
- BSP class is now a concrete implementation, the interface isn't implemented anymore. 
- added setup / cleanup instead of configurable.
- refactored somewhat to get the things running again.

Next step is the integration to the BSPJob. I leave this to you :)

Thanks Miklos, great work. 

> Add Pregel-like API
> -------------------
>
>                 Key: HAMA-409
>                 URL: https://issues.apache.org/jira/browse/HAMA-409
>             Project: Hama
>          Issue Type: New Feature
>          Components: bsp, examples
>    Affects Versions: 0.3.0
>            Reporter: Thomas Jungblut
>            Assignee: Miklos Erdelyi
>              Labels: graph
>             Fix For: 0.4.0
>
>         Attachments: HAMA-409.patch, HAMA-409_v01.patch, HAMA-409_v02.patch, hama-graph.zip
>
>
> According to what we've discussed on the mailing list, we should add a Pregel-like API.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Issue Comment Edited] (HAMA-409) Add Pregel-like API

Posted by "Thomas Jungblut (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HAMA-409?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13088188#comment-13088188 ] 

Thomas Jungblut edited comment on HAMA-409 at 8/20/11 12:33 PM:
----------------------------------------------------------------

{quote}
How about we separate this big issue into smaller tasks?
{quote}

How about splitting it into:

> Create graph module
> Integrate HAMA-423 (Partitioning and vertices)
> Integrate the vertex class to our BSPJob

So we can commit this now...

      was (Author: thomas.jungblut):
    {qoute}
How about we separate this big issue into smaller tasks?
{qoute}

How about splitting it into:

> Create graph module
> Integrate HAMA-423 (Partitioning and vertices)
> Integrate the vertex class to our BSPJob

So we can commit this now...
  
> Add Pregel-like API
> -------------------
>
>                 Key: HAMA-409
>                 URL: https://issues.apache.org/jira/browse/HAMA-409
>             Project: Hama
>          Issue Type: New Feature
>          Components: bsp, examples
>    Affects Versions: 0.3.0
>            Reporter: Thomas Jungblut
>            Assignee: Miklos Erdelyi
>              Labels: graph
>             Fix For: 0.4.0
>
>         Attachments: HAMA-409_v01.patch, HAMA-409_v02.patch, HAMA-409_v03.patch, HAMA-409_v04.patch, HAMA-409_v05.patch, hama-graph.zip
>
>
> According to what we've discussed on the mailing list, we should add a Pregel-like API.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HAMA-409) Add Pregel-like API

Posted by "Thomas Jungblut (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HAMA-409?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13202371#comment-13202371 ] 

Thomas Jungblut commented on HAMA-409:
--------------------------------------

I'm just trying to use it for inlinkcount.

Things I notice:

- Vertex class constructor is swallowing the exception (does the value be need to be in the basic vertex class?)
- Why are the setters avaiable? We should declare them package visible.
- SSSP and pagerank needs to check the args (minor thing)
- MessageIterator should have a hasNext() method.

We have to add the ability to write...

But otherwise good work. I like it.

                
> Add Pregel-like API
> -------------------
>
>                 Key: HAMA-409
>                 URL: https://issues.apache.org/jira/browse/HAMA-409
>             Project: Hama
>          Issue Type: New Feature
>          Components: bsp, examples
>    Affects Versions: 0.4.0
>            Reporter: Thomas Jungblut
>            Assignee: Edward J. Yoon
>              Labels: graph
>             Fix For: 0.5.0
>
>         Attachments: HAMA-409_v01.patch, HAMA-409_v02.patch, HAMA-409_v03.patch, HAMA-409_v04.patch, HAMA-409_v05.patch, hama-graph.zip, pregel_v01.patch, pregel_v02.patch, test.txt
>
>
> According to what we've discussed on the mailing list, we should add a Pregel-like API.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HAMA-409) Add Pregel-like API

Posted by "Edward J. Yoon (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HAMA-409?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13064419#comment-13064419 ] 

Edward J. Yoon commented on HAMA-409:
-------------------------------------

I just created a wiki page to design more elegant programming model. 

http://wiki.apache.org/hama/GraphModel

> Add Pregel-like API
> -------------------
>
>                 Key: HAMA-409
>                 URL: https://issues.apache.org/jira/browse/HAMA-409
>             Project: Hama
>          Issue Type: New Feature
>          Components: bsp, examples
>    Affects Versions: 0.3.0
>            Reporter: Thomas Jungblut
>            Assignee: Miklos Erdelyi
>              Labels: graph
>             Fix For: 0.4.0
>
>         Attachments: HAMA-409_v01.patch, hama-graph.zip
>
>
> According to what we've discussed on the mailing list, we should add a Pregel-like API.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Issue Comment Edited] (HAMA-409) Add Pregel-like API

Posted by "Thomas Jungblut (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HAMA-409?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13088187#comment-13088187 ] 

Thomas Jungblut edited comment on HAMA-409 at 8/20/11 1:02 PM:
---------------------------------------------------------------

Updated to current revision 1159872.

Several things to do:

-Integrate the vertices and partitioners of HAMA-423.
-Integrate the vertex class to our BSPJob
-Get rid of the ZooKeeper stuff in the PartitionManager and ComputeRunner- < This is used for dynamic partition assignment to peers.
->Extract a graph module for maven

      was (Author: thomas.jungblut):
    Updated to current revision 1159872.

Several things to do:

-Integrate the vertices and partitioners of HAMA-423.
-Integrate the vertex class to our BSPJob
-Get rid of the ZooKeeper stuff in the PartitionManager and ComputeRunner
->Extract a graph module for maven
  
> Add Pregel-like API
> -------------------
>
>                 Key: HAMA-409
>                 URL: https://issues.apache.org/jira/browse/HAMA-409
>             Project: Hama
>          Issue Type: New Feature
>          Components: bsp, examples
>    Affects Versions: 0.3.0
>            Reporter: Thomas Jungblut
>            Assignee: Miklos Erdelyi
>              Labels: graph
>             Fix For: 0.4.0
>
>         Attachments: HAMA-409_v01.patch, HAMA-409_v02.patch, HAMA-409_v03.patch, HAMA-409_v04.patch, HAMA-409_v05.patch, hama-graph.zip
>
>
> According to what we've discussed on the mailing list, we should add a Pregel-like API.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HAMA-409) Add Pregel-like API

Posted by "Thomas Jungblut (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HAMA-409?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thomas Jungblut updated HAMA-409:
---------------------------------

    Fix Version/s:     (was: 0.4.0)
                   0.5.0
    
> Add Pregel-like API
> -------------------
>
>                 Key: HAMA-409
>                 URL: https://issues.apache.org/jira/browse/HAMA-409
>             Project: Hama
>          Issue Type: New Feature
>          Components: bsp, examples
>    Affects Versions: 0.3.0
>            Reporter: Thomas Jungblut
>            Assignee: Miklos Erdelyi
>              Labels: graph
>             Fix For: 0.5.0
>
>         Attachments: HAMA-409_v01.patch, HAMA-409_v02.patch, HAMA-409_v03.patch, HAMA-409_v04.patch, HAMA-409_v05.patch, hama-graph.zip
>
>
> According to what we've discussed on the mailing list, we should add a Pregel-like API.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HAMA-409) Add Pregel-like API

Posted by "Edward J. Yoon (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HAMA-409?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13207585#comment-13207585 ] 

Edward J. Yoon commented on HAMA-409:
-------------------------------------

maybe it's related with multiple graph, examples jar files when job submission is done.
                
> Add Pregel-like API
> -------------------
>
>                 Key: HAMA-409
>                 URL: https://issues.apache.org/jira/browse/HAMA-409
>             Project: Hama
>          Issue Type: New Feature
>          Components: bsp, examples
>    Affects Versions: 0.4.0
>            Reporter: Thomas Jungblut
>            Assignee: Edward J. Yoon
>              Labels: graph
>             Fix For: 0.5.0
>
>         Attachments: HAMA-409_v01.patch, HAMA-409_v02.patch, HAMA-409_v03.patch, HAMA-409_v04.patch, HAMA-409_v05.patch, InlinkCount.java, hama-graph.zip, pregel_v01.patch, pregel_v02.patch, pregel_v03.patch, test.txt
>
>
> According to what we've discussed on the mailing list, we should add a Pregel-like API.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HAMA-409) Add Pregel-like API

Posted by "Edward J. Yoon (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HAMA-409?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13065152#comment-13065152 ] 

Edward J. Yoon commented on HAMA-409:
-------------------------------------

>> But we can actually add job.setVertexClass(Blahblah.class), if this is set we can automatically set the ComputeGenericBSP/Pregel BSP.

Like this?

{code}
public class MyVertex extends Vertex {
  public void compute(MessageValueIterator<LongWritable> messages)
        throws IOException {
     ...
  }
}

public void main(String[] args) {
  HamaConfiguration conf = new HamaConfiguration();
  BSPJob job = new BSPJob(conf);

  job.setVertexClass(MyVertex.class);
  job.setMessageValueClass(LongWritable.class);
  ...
{code}


> Add Pregel-like API
> -------------------
>
>                 Key: HAMA-409
>                 URL: https://issues.apache.org/jira/browse/HAMA-409
>             Project: Hama
>          Issue Type: New Feature
>          Components: bsp, examples
>    Affects Versions: 0.3.0
>            Reporter: Thomas Jungblut
>            Assignee: Miklos Erdelyi
>              Labels: graph
>             Fix For: 0.4.0
>
>         Attachments: HAMA-409_v01.patch, HAMA-409_v02.patch, hama-graph.zip
>
>
> According to what we've discussed on the mailing list, we should add a Pregel-like API.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (HAMA-409) Add Pregel-like API

Posted by "Edward J. Yoon (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HAMA-409?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Edward J. Yoon resolved HAMA-409.
---------------------------------

    Resolution: Fixed

Just committed this.

Vertex Combiners/Aggregators, output interfaces, .., etc. can be added later.
                
> Add Pregel-like API
> -------------------
>
>                 Key: HAMA-409
>                 URL: https://issues.apache.org/jira/browse/HAMA-409
>             Project: Hama
>          Issue Type: New Feature
>          Components: bsp, examples
>    Affects Versions: 0.4.0
>            Reporter: Thomas Jungblut
>            Assignee: Edward J. Yoon
>              Labels: graph
>             Fix For: 0.5.0
>
>         Attachments: HAMA-409_v01.patch, HAMA-409_v02.patch, HAMA-409_v03.patch, HAMA-409_v04.patch, HAMA-409_v05.patch, InlinkCount.java, hama-graph.zip, pregel_v01.patch, pregel_v02.patch, pregel_v03.patch, test.txt
>
>
> According to what we've discussed on the mailing list, we should add a Pregel-like API.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HAMA-409) Add Pregel-like API

Posted by "Thomas Jungblut (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HAMA-409?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thomas Jungblut updated HAMA-409:
---------------------------------

    Attachment: HAMA-409_v02.patch

> Add Pregel-like API
> -------------------
>
>                 Key: HAMA-409
>                 URL: https://issues.apache.org/jira/browse/HAMA-409
>             Project: Hama
>          Issue Type: New Feature
>          Components: bsp, examples
>    Affects Versions: 0.3.0
>            Reporter: Thomas Jungblut
>            Assignee: Miklos Erdelyi
>              Labels: graph
>             Fix For: 0.4.0
>
>         Attachments: HAMA-409_v01.patch, HAMA-409_v02.patch, hama-graph.zip
>
>
> According to what we've discussed on the mailing list, we should add a Pregel-like API.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HAMA-409) Add Pregel-like API

Posted by "Edward J. Yoon (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HAMA-409?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13063743#comment-13063743 ] 

Edward J. Yoon commented on HAMA-409:
-------------------------------------

Excellent.

> Add Pregel-like API
> -------------------
>
>                 Key: HAMA-409
>                 URL: https://issues.apache.org/jira/browse/HAMA-409
>             Project: Hama
>          Issue Type: New Feature
>          Components: bsp, examples
>    Affects Versions: 0.3.0
>            Reporter: Thomas Jungblut
>            Assignee: Miklos Erdelyi
>              Labels: graph
>             Fix For: 0.4.0
>
>         Attachments: hama-graph.zip
>
>
> According to what we've discussed on the mailing list, we should add a Pregel-like API.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HAMA-409) Add Pregel-like API

Posted by "Thomas Jungblut (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HAMA-409?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13064436#comment-13064436 ] 

Thomas Jungblut commented on HAMA-409:
--------------------------------------

Very nice work Miklos, thank you very much.
I'm going to extend this with voteForHalt(), as an alternative to the iteration maximum.

> Add Pregel-like API
> -------------------
>
>                 Key: HAMA-409
>                 URL: https://issues.apache.org/jira/browse/HAMA-409
>             Project: Hama
>          Issue Type: New Feature
>          Components: bsp, examples
>    Affects Versions: 0.3.0
>            Reporter: Thomas Jungblut
>            Assignee: Miklos Erdelyi
>              Labels: graph
>             Fix For: 0.4.0
>
>         Attachments: HAMA-409_v01.patch, hama-graph.zip
>
>
> According to what we've discussed on the mailing list, we should add a Pregel-like API.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HAMA-409) Add Pregel-like API

Posted by "Edward J. Yoon (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HAMA-409?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13065098#comment-13065098 ] 

Edward J. Yoon commented on HAMA-409:
-------------------------------------

If Hama job can be submitted to Hadoop nextGen, all BSP-based Hama jobs e.g., pure BSP job, GraphJob, .., etc should be submitted as a Hama job.

Otherwise, I think it's too incoherent ..

> Add Pregel-like API
> -------------------
>
>                 Key: HAMA-409
>                 URL: https://issues.apache.org/jira/browse/HAMA-409
>             Project: Hama
>          Issue Type: New Feature
>          Components: bsp, examples
>    Affects Versions: 0.3.0
>            Reporter: Thomas Jungblut
>            Assignee: Miklos Erdelyi
>              Labels: graph
>             Fix For: 0.4.0
>
>         Attachments: HAMA-409_v01.patch, HAMA-409_v02.patch, hama-graph.zip
>
>
> According to what we've discussed on the mailing list, we should add a Pregel-like API.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HAMA-409) Add Pregel-like API

Posted by "Edward J. Yoon (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HAMA-409?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Edward J. Yoon updated HAMA-409:
--------------------------------

    Attachment: test.txt

This is my test patch. Unit test is OK.

In ShortestPathVertex class, SSSP can be wrote like this:

{code}
  public void compute(List<ShortestPathVertexMessage> value) throws IOException {
    int minDist = this.getCost();

    for (ShortestPathVertexMessage msg : value) {
      if (msg.getData() < minDist)
        minDist = msg.getData();
    }

    if (minDist < this.getCost()) {
      this.setCost(minDist);
      for (ShortestPathVertex e : this.getEdges()) {
        sendMessage(e, minDist + e.getWeight());
      }
    }
  }
{code}

In this issue, the key pointi is interface designing. Optimization issues can be handled later.
                
> Add Pregel-like API
> -------------------
>
>                 Key: HAMA-409
>                 URL: https://issues.apache.org/jira/browse/HAMA-409
>             Project: Hama
>          Issue Type: New Feature
>          Components: bsp, examples
>    Affects Versions: 0.3.0
>            Reporter: Thomas Jungblut
>              Labels: graph
>             Fix For: 0.5.0
>
>         Attachments: HAMA-409_v01.patch, HAMA-409_v02.patch, HAMA-409_v03.patch, HAMA-409_v04.patch, HAMA-409_v05.patch, hama-graph.zip, test.txt
>
>
> According to what we've discussed on the mailing list, we should add a Pregel-like API.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HAMA-409) Add Pregel-like API

Posted by "Thomas Jungblut (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HAMA-409?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13059089#comment-13059089 ] 

Thomas Jungblut commented on HAMA-409:
--------------------------------------

In addition we should update the Website to be "Pregel-Like" :)

> Add Pregel-like API
> -------------------
>
>                 Key: HAMA-409
>                 URL: https://issues.apache.org/jira/browse/HAMA-409
>             Project: Hama
>          Issue Type: New Feature
>          Components: bsp, examples
>    Affects Versions: 0.3.0
>            Reporter: Thomas Jungblut
>             Fix For: 0.4.0
>
>
> According to what we've discussed on the mailing list, we should add a Pregel-like API.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira