Re: zookeeper client session write-read consistency

2013-11-19 Thread German Blanco
I for got one "within a session" in the previous text ... ... This means that if a client sends a write *within a session*, AND no other client modifies that information, it will always see the result of that write in any subsequent read ... On Wed, Nov 20, 2013 at 8:01 AM, German Blanco < german

Re: zookeeper client session write-read consistency

2013-11-19 Thread German Blanco
hello, I believe that if you observe that, you should try to reproduce it with TRACE logging level and open a JIRA with the case sending the logs. If I am not wrong, ZooKeeper transactions are guaranteed to be executed in sequential order in all servers and within the client session. This means th

NumberFormatException while inserting JSON document through zkCli

2013-11-19 Thread Techy Teck
I am trying to update one of our znode data from zkCli. And I am trying to insert simple json document in one of our znode data. And whenever I execute the below command from cli, I always get below error - [zk: localhost:2181(CONNECTED) 110] set /example/json"{\"script\":\"#!/bin/bash echo Hello

zookeeper client session write-read consistency

2013-11-19 Thread Mohammad Shamma
I have a question about the consistency guarantees of zookeeper. As far as I understand, zookeeper provides eventual consistency guarantees. Updates are not guaranteed to be seen by read operations following an update (reads are not necessarily consistent). The reason behind this is that reads mig

Re: How to watch for events on the descendant nodes in ZooKeeper using kazoo?

2013-11-19 Thread Techy Teck
Thanks a lot Diego. Let me see whether I can put that example using the basic approach or not. By decorations approach you mean the approach I am doing currently right like this? - @zk.ChildrenWatch("/my/example") def watch_children(children): print("Children are now: %s" % children)

Re: How to watch for events on the descendant nodes in ZooKeeper using kazoo?

2013-11-19 Thread Diego Oliveira
Hello Techy, The decorations approach you are doing may not be the best way to handle your use case. I don't know very much about the python binding but I think you'll need to do the watch programmatically to achieve the what you are looking for. Take a look in the kazzo basic usage: def my_f

Re: How to watch for events on the descendant nodes in ZooKeeper using kazoo?

2013-11-19 Thread Techy Teck
Can anyone help me with this? I am stuck on this problem.. Or if there any better python client for Zookeeper then please let me know as well? On Mon, Nov 18, 2013 at 9:41 PM, Techy Teck wrote: > I recently started working with Python for Zookeeper. I am using `kazoo` > library for Zookeeper.

Announcement: ZooKeeper Performance Monitoring in SPM

2013-11-19 Thread Otis Gospodnetic
Hi, Quick announcement that we've added ZooKeeper monitoring and alerting to SPM, so you can monitor it in SPM along your other clusters - Hadoop, HBase, Elasticsearch, Solr, Kafka, etc. Screenshot: http://blog.sematext.com/2013/11/19/announcement-zookeeper-performance-monitoring-in-spm/ Otis --

From standalone ZK instance to 3 instances

2013-11-19 Thread michael.boom
Hi, I'm currently having only one Zookeeper instance (ZK1) and would like to upgrade to a 3 instace quorum (ZK1, ZK2, ZK3). I understand that this can be done by rolling restarts, but since ZK1 was in standalone mode until now, it's missing the myid file. Do i need to create the myid file for ZK1