mirror of
https://gitee.com/dolphinscheduler/DolphinScheduler.git
synced 2024-12-05 13:48:10 +08:00
bbe7a256a8
* service start exception modify * master,worker start modify * .env update * install-escheduler-ui.sh,monitor_server.py and install.sh scripts comment change to english and install-escheduler-ui.sh use escheduler change to dolphinscheduler * scripts name standardization
18 lines
424 B
Python
18 lines
424 B
Python
import time
|
|
import sys
|
|
from kazoo.client import KazooClient
|
|
|
|
class ZkClient:
|
|
def __init__(self):
|
|
self.zk = KazooClient(hosts=sys.argv[1])
|
|
self.zk.start()
|
|
def del_node(self):
|
|
self.zk.delete(sys.argv[2], recursive=True)
|
|
print('deleted success')
|
|
def __del__(self):
|
|
self.zk.stop()
|
|
if __name__ == '__main__':
|
|
zkclient = ZkClient()
|
|
zkclient.del_node()
|
|
time.sleep(2)
|