Re: Graph numberVertices Bug

2012-09-04 Thread HuYuesheng
Thank you very much! 2012/9/5 Thomas Jungblut > Register yourself in Apache's JIRA: > https://issues.apache.org/jira/browse/HAMA > > Then file a bug about this issue and have a close look at this doc: > http://wiki.apache.org/hama/HowToContribute > This should explain everything needed, if you h

Re: Graph numberVertices Bug

2012-09-04 Thread Thomas Jungblut
Register yourself in Apache's JIRA: https://issues.apache.org/jira/browse/HAMA Then file a bug about this issue and have a close look at this doc: http://wiki.apache.org/hama/HowToContribute This should explain everything needed, if you have additional questions, feel free to ask them ;) 2012/9/5

Re: Graph numberVertices Bug

2012-09-04 Thread HuYuesheng
How to do it ? I am a newbie on developing hama. 2012/9/5 Thomas Jungblut > Feel free to provide a patch and fix it ;) > > 2012/9/5 HuYuesheng > > > The value of numberVertices will affect the method --"getNumVertices()" > > that used in PageRank example to set the initial value of the vertex.

Re: Graph numberVertices Bug

2012-09-04 Thread Thomas Jungblut
Feel free to provide a patch and fix it ;) 2012/9/5 HuYuesheng > The value of numberVertices will affect the method --"getNumVertices()" > that used in PageRank example to set the initial value of the vertex. So, > if the numberVertices is diffrent in every task, the result of PageRank > will be

Re: Graph numberVertices Bug

2012-09-04 Thread HuYuesheng
The value of numberVertices will affect the method --"getNumVertices()" that used in PageRank example to set the initial value of the vertex. So, if the numberVertices is diffrent in every task, the result of PageRank will be not accurate. I have tried to fix this, send the vertices.size() to othe

Re: Graph numberVertices Bug

2012-09-04 Thread Thomas Jungblut
Yep, this thing is called "Aggregator", pagerank makes use of it for example. 2012/9/5 Edward J. Yoon > > not all task been assigned the same number of vertices. > > Yes, you're right. So, that's the estimated number of vertices. If > each tasks sends the number of vertices to the 'master task',

Re: Graph numberVertices Bug

2012-09-04 Thread Edward J. Yoon
> not all task been assigned the same number of vertices. Yes, you're right. So, that's the estimated number of vertices. If each tasks sends the number of vertices to the 'master task', the 'master task' might be used to sum up counts. On Wed, Sep 5, 2012 at 12:18 PM, HuYuesheng wrote: > Hi guy

Graph numberVertices Bug

2012-09-04 Thread HuYuesheng
Hi guys, I think I found a bug in org.apache.hama.graph.GraphJobRunner.setup(). numberVertices = vertices.size() * peer.getNumPeers(), this line is not correct because not all task been assigned the same number of vertices. Am I right?