Last active
August 29, 2015 14:06
-
-
Save elee/5dc7aadd33d8e4354fb3 to your computer and use it in GitHub Desktop.
wipe out Zk data
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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