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,
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
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
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
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
>>