You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@zookeeper.apache.org by bsargurunathan <bs...@gmail.com> on 2013/07/23 08:54:10 UTC

How to implement the Barrier and producer-consumer Queue?

Hi Guys,

Please guide me how to implement the Barrier and producer-consumer queue in
zookeeper?
Basically I implemented the code whatever the wiki is having, but I am
facing some issues and its follows.

Keeper exception when instantiating queue: KeeperErrorCode = ConnectionLoss
for /b1

Its happens while checking the barrier node exist in zookeeper.
Please guide me how to implement it.

Thanks,
Guru



--
View this message in context: http://zookeeper-user.578899.n2.nabble.com/How-to-implement-the-Barrier-and-producer-consumer-Queue-tp7578947.html
Sent from the zookeeper-user mailing list archive at Nabble.com.

Re: How to implement the Barrier and producer-consumer Queue?

Posted by Jordan Zimmerman <jo...@jordanzimmerman.com>.
Instead of writing your own recipes (which is not trivial) consider using Curator which has all of the recipes from the ZK website and more. 

http://curator.incubator.apache.org/

====================
Jordan Zimmerman

On Jul 22, 2013, at 11:54 PM, bsargurunathan <bs...@gmail.com> wrote:

> Hi Guys,
> 
> Please guide me how to implement the Barrier and producer-consumer queue in
> zookeeper?
> Basically I implemented the code whatever the wiki is having, but I am
> facing some issues and its follows.
> 
> Keeper exception when instantiating queue: KeeperErrorCode = ConnectionLoss
> for /b1
> 
> Its happens while checking the barrier node exist in zookeeper.
> Please guide me how to implement it.
> 
> Thanks,
> Guru
> 
> 
> 
> --
> View this message in context: http://zookeeper-user.578899.n2.nabble.com/How-to-implement-the-Barrier-and-producer-consumer-Queue-tp7578947.html
> Sent from the zookeeper-user mailing list archive at Nabble.com.