Re: Adding MasterCompute object causes "failed to report status" errors

2012-08-20 Thread KAUSHIK SARKAR
een the example and my code: >1) I use the aggregate function in each vertex's compute method. If > this is not the way to have the vertices combine values, what is? > > If you can provide insight to either how I'm not following the example, > or what else might wrong,

Re: Adding MasterCompute object causes "failed to report status" errors

2012-08-20 Thread KAUSHIK SARKAR
Hi Nick, Are you using WorkerContext to register the aggregator? You need to override the preApplication() method in WorkerContext to register the aggregator and then override the preSuperstep() method to to tell the workers to use the aggregator (the useAggregator() method). Check the MasterCompu

Re: Termination Conditions

2012-08-03 Thread KAUSHIK SARKAR
Hi Nick, I guess you can use MasterCompute together with BooleanAndAggregator to solve your problem. Whenever a vertex decides to halt, it will notify the MasterCompute with "true" value for the aggregator, otherwise it will send "false". If all the vertices agree to halt at a superstep, then the

Re: SimpleShortestPathsVertex does not work when compiled separately

2012-08-01 Thread KAUSHIK SARKAR
s exampleClass) { this(conf); setJarByClass(exampleClass); } It will solve the rather annoying class-not-found problem. Regards, Kaushik On Tue, Jul 24, 2012 at 11:31 AM, KAUSHIK SARKAR wrote: > Hi, > > Marcin's solution worked for me. Thanks! > > I didn't try out addFileTo

Re: SimpleShortestPathsVertex does not work when compiled separately

2012-07-24 Thread KAUSHIK SARKAR
om/questions/10700853/giraph-shortest-paths-example-classnotfoundexception. >> But I still don't know why I have do it like this, maybe someone here can >> explain this? >> >> regards >> marcin biczak >> >> >> 2012/7/24 KAUSHIK SARKAR >>