zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Raúl Gutiérrez Segalés <...@itevenworks.net>
Subject Re: Zab documentation ?
Date Thu, 20 Feb 2014 17:57:13 GMT

On 20 February 2014 02:08, Abu-Aisheh <zeina.abuaisheh@gmail.com> wrote:

> Good morning,
> Could anyone of you provide me with a simple java code that uses the Zab
> protocol of Zookeeper? I have been searching about that but I did not
> succeed to find a code that shows how can I use Zab.

There are papers by Patrick (Hunt) and Flavio (P. Junquiera) out there for
the theory and I'd say ZK's source under:

Learner.java, LearnerHandler.java}

would be a good start. I don't know of a standalone ZAB library or
implementation (though that would be fun).

In fact what I need is simple, I have a MapReduce code and I want all the
> mappers to update a variable (let's say X) whenever they succeed to find a
> better value (i.e. a bigger value). In this case, the leader has to
> broadcast the actual best value to all mappers. How can I do such a thing
> in
> Java?

I am guessing it has to be in process and using ZK to store this
variables/state isn't an option?


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message