Re: SimpleShortestPathsVertex does not work when compiled separately

2012-08-01 Thread KAUSHIK SARKAR
Hi, I found an alternative programmatic solution to the problem. We need to modify the run() method in the following way - ... @Override public int run(String[] argArray) throws Exception { Preconditions.checkArgument(argArray.length == 4, "run: Must have 4 arguments " +

Re: Cleaning _bsp/_defaultZkManagerDir/job_XXXX after the job finishes

2012-08-01 Thread Gianmarco De Francisci Morales
Hi Eugene, Thanks for answering. I am not sure it is working. I see my _bsp directory on HDFS getting filled with each job I launch. Does you patch apply only to local mode? Cheers, -- Gianmarco On Tue, Jul 31, 2012 at 9:23 PM, Eugene Koontz wrote: > On 7/31/12 12:01 PM, Gianmarco De Francis

Re: Help understanding Page Rank example.

2012-08-01 Thread Dodda Ganesh
Hey, I just saw the ShortestPath example and I was wondering where the output is written to? The second argument at the command line is not getting used anywhere in the code. I'm sorry if my questions are too naive. I'm just a beginner. Ganesh On Wed, Aug 1, 2012 at 9:24 AM, Dodda Ganesh wrote:

Re: package-private methods in Vertex/BasicVertex

2012-08-01 Thread Nick West
Thanks for the replay; I had failed to see that post yesterday when searching about this. Reading the discussion brought up a related question: If a vertex is to have "state", is it better to store this in an extended vertex value object or as member variables of the class and override the rea

Re: package-private methods in Vertex/BasicVertex

2012-08-01 Thread Alessandro Presta
Hi Nick, Thanks for pointing this out. Here's a relevant discussion that was just recently started: https://issues.apache.org/jira/browse/GIRAPH-272. Hopefully we get this sorted out soon. Alessandro From: Nick West mailto:nick.w...@benchmarksolutions.com>> Reply-To: "user@giraph.apache.org

package-private methods in Vertex/BasicVertex

2012-08-01 Thread Nick West
Hi, There are several methods in Vertex/BasicVertex that are declared as abstract but without any access modifier specified. They are: abstract void putMessages(Iterable messages); abstract void releaseResources(); This has the effect that they both have the access modifier package-pri

Re: Help understanding Page Rank example.

2012-08-01 Thread Dodda Ganesh
Hi Alessandro, Thanks for replying. I understand how Tool works. So now the thing is that I'm having trouble understanding how the control flows within a superstep. The program starts with the main class calling Run inside PageRankBenchmark. The options are set and after that the VertexClass is

Re: Help understanding Page Rank example.

2012-08-01 Thread Alessandro Presta
Hi Ganesh, The way our benchmarks are currently organized is the following: a Benchmark class extends Vertex (the main unit of computation in a Giraph job) and Tool (a Hadoop application that can be run on a cluster). Although the computation code is essentially the same, SimplePageRankVertex i