'Returns a hdfscli InsecureClient object.'

def get_conn(self):

    nn_connections = self.get_connections(self.webhdfs_conn_id)
    for nn in nn_connections:
        try:
            logging.debug('Trying    namenode    {}'.format(nn.host))
            connection_str = 'http://{nn.host}:{nn.port}'.format(nn=nn)
            if _kerberos_security_mode:
                client = KerberosClient(connection_str)
            else:
                proxy_user = (self.proxy_user or nn.login)
                client = InsecureClient(connection_str, user=proxy_user)
            client.status('/')
            logging.debug('Using    namenode    {}    for    hook'.format(nn.host))
            return client
        except HdfsError as e:
            logging.debug('Read    operation    on    namenode    {nn.host}    failed    with    error:    {e.message}'.format(**locals()))
    nn_hosts = [c.host for c in nn_connections]
    no_nn_error = 'Read    operations    failed    on    the    namenodes    below:\n{}'.format('\n'.join(nn_hosts))
    raise AirflowWebHDFSHookException(no_nn_error)
