Questions tagged [kazoo]

Kazoo is a Python library designed to make working with Zookeeper a more hassle-free experience that is less prone to errors.

Kazoo is a Python library designed to make working with Zookeeper a more hassle-free experience that is less prone to errors.

42 questions
1
vote
0 answers

Error sending push notification from Kazoo's Pusher module with APNS

I've configured the Pusher Kazoo's application to wake up an iOS device before forward a voip call. I followed the official documentation here. To send a push with APNS, Pusher use this library that works pretty well if I try it passing the…
Darion Badlydone
  • 897
  • 14
  • 37
1
vote
1 answer

How to build Kazoo RPM files from source code?

I am experimenting with kazoo and wanted to install it from source code. I am able to generate a deployable release but i am not able to build rpm from it. I heard that spec file is needed to build rpm but couldn't generate one . Any help is…
1
vote
0 answers

Register services with kazoo python and use for service discovery

I am trying to register some services and use it as a service discovery using Apache Zookeeper and implementing it in python using the Kazoo library. Having a hard time to figure out how to trigger the API call from zookeeper and redirect the HTTP…
handlerFive
  • 870
  • 10
  • 23
1
vote
0 answers

Zookeeper server health check/monitor using python kazoo client

I have a python script to monitor the Zookeeper server health check - basically check if Zookeeper is up and running. This runs every minute. So I have just written a simple python method which will create a new zookeeper kazoo client and then…
Xavier DSouza
  • 2,861
  • 7
  • 29
  • 40
1
vote
1 answer

connect to Zookeeper via kazoo lib with credentials

I am trying to protect my zookeeper with credentials. Until now i've used the following code in order to connect to zookeeper: zk = KazooClient(hosts=HOSTS) zk.start() Now, in order to add credentials i've added an auth with addauth digest…
Ami Hollander
  • 2,435
  • 3
  • 29
  • 47
1
vote
1 answer

python library to manage kafka cluster (topics CRUD, increase partition, reassignment, leader election etc)

I searched in internet for python library to manage kafka operations like CRUD on topics, partition increment, partition reassignment, leader election etc. I didn't find anything. I know pykafka, kafka-python, but they are for creating…
REDDY PRASAD
  • 1,309
  • 2
  • 14
  • 29
1
vote
0 answers

Kazoo package using Jython

Kazoo's fairly working under the Python, but the project which i'm working on requires to use it under the Jython. Here is the issue: >>> from kazoo.client import KazooClient >>> zk = KazooClient('127.0.0.1') >>> zk.start() Traceback (most recent…
bp3
  • 245
  • 1
  • 5
  • 12
1
vote
1 answer

Bug in kazoo 2.0 library

I am using kazoo in project I am working on. But after some time I get an error message that new connection to zookeper cannot be opened. So I wrote a little test program: for i in range(0, 1000): print i zk = kazoo.client.KazooClient() …
Mijalko
  • 529
  • 4
  • 13
1
vote
1 answer

How to get watch count of ZooKeeper

Now I want to get the watch count of the specified znode in ZooKeeper. I have read the official tutorial and known the mntr command. But it's for the whole QuorumServer. So does ZooKeeper provide the API to get the number of watches of the specified…
tobe
  • 1,671
  • 2
  • 23
  • 38
1
vote
1 answer

what is this amplify.module = function(whapp, module, config, construct, methods) {

i was checking on code on kazoo UI platform so i found this code in one of its js file and when i search online regarding amplifyjs module then their is not link or content related this topic. does anyone have idea about what exactly is this? /*! *…
Anil Kumar
  • 701
  • 11
  • 28
1
vote
1 answer

Unable to start kazoo client. Fails with 'An operation was attempted on something that is not a socket'

I am just starting out with Kazoo and I can't get a very simple program to run: from kazoo.client import KazooClient import logging logging.basicConfig(level=logging.DEBUG) from kazoo.retry import KazooRetry _retry = KazooRetry(max_tries=1000,…
kc66
  • 41
  • 3
1
vote
0 answers

No handlers could be found for logger "kazoo.client"

While giving the hardcoded value for the following code , its working fine. #!/usr/bin/env python3 import time from kazoo.client import KazooClient import os nodes = ["172.22.105.53"] zk = KazooClient(hosts='172.22.105.53:2181') output : no…
1
vote
1 answer

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

I recently started working with Python for Zookeeper. I am using kazoo library for Zookeeper. I need to keep a watch on my root node which is - /my/example couple of other nodes which might get added to my above root node will be like this -…
AKIWEB
  • 19,008
  • 67
  • 180
  • 294
1
vote
1 answer

how to used zookeeper watch in kazoo to block program

I read the docs for kazoo. I then ran the code example on the site, the func for watch been called once every time I run it, I want to block the program until the children of one node deleted, how can I do this? Current Code: #!/usr/bin/env…
xielingyun
  • 780
  • 9
  • 17
0
votes
0 answers

Kazoo "Connection dropped" error when connecting to local zookeeper server

I started a local zookeeper service and tried connecting to it with python kazoo client. However i keep getting, Connection dropped: socket connection erorr: The handle is invalid On the server side, i see, Unable to read additional data from…
Danny
  • 391
  • 2
  • 12