Skip to content

Instantly share code, notes, and snippets.

@elee
Last active August 29, 2015 14:06
Show Gist options
  • Save elee/5dc7aadd33d8e4354fb3 to your computer and use it in GitHub Desktop.
Save elee/5dc7aadd33d8e4354fb3 to your computer and use it in GitHub Desktop.
wipe out Zk data
from kazoo.client import KazooClient
zk = KazooClient('mmaster-0:2181,mmaster-1:2181,mmaster-2:2181')
zk.start()
@zk.ChildrenWatch('/')
def watch_children(children):
print('new state: {}'.format('\n'.join(children)))
zk.delete('/marathon', recursive=True)
zk.stop()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment