def zk_conns_from_hosts(hosts, chroot=None):
    """
    Make a list of Zookeeper connection strings one her host.
    """
    if chroot and not chroot.startswith('/'):
        chroot = '/' + chroot
    return ['%s:%s' % (host,port) + chroot or '' for host, port in hosts]