def create_impala_client(cls, host_port=None, protocol='beeswax'): if host_port is None: host_port = cls.__get_default_host_port(protocol) client = create_connection(host_port=host_port, use_kerberos=pytest.config.option.use_kerberos, protocol=protocol) client.connect() return client
def create_beeswax_client(self, use_kerberos=False): """Creates a new beeswax client connection to the impalad""" client = create_connection('%s:%d' % (self.hostname, self.beeswax_port), use_kerberos) client.connect() return client
def create_impala_client(cls, host_port=IMPALAD): client = create_connection(host_port=host_port, use_kerberos=pytest.config.option.use_kerberos) client.connect() return client
def create_hs2_client(self): """Creates a new HS2 client connection to the impalad""" client = create_connection('%s:%d' % (self.hostname, self.hs2_port), protocol='hs2') client.connect() return client
def create_beeswax_client(self, use_kerberos=False): """Creates a new beeswax client connection to the impalad""" client = create_connection( '%s:%d' % (self.hostname, self.beeswax_port), use_kerberos) client.connect() return client