def connect_to_zookeeper(hostlist, credentials):
 client = KazooClient(hostlist, timeout=5, max_retries=3, auth_data=[('digest', ':'.join(credentials))])
 client.make_acl = functools.partial(make_digest_acl, *credentials)
 client.start()
 return client

def connect_to_zookeeper ( hostlist , credentials ) : client = KazooClient ( hostlist , timeout = 5 , max_retries = 3 , auth_data = [ ( 'digest' , ':' . join ( credentials ) ) ] ) client . make_acl = functools . partial ( make_digest_acl , * credentials ) client . start ( ) return client
create a connection to the zookeeper ensemble .