MCPcopy Create free account
hub / github.com/apache/impala / connect

Method connect

tests/comparison/cluster.py:386–397  ·  view source on GitHub ↗
(self, db_name=None)

Source from the content-addressed store, hash-verified

384 return self._warehouse_dir
385
386 def connect(self, db_name=None):
387 conn = HiveConnection(
388 host_name=self.hs2_host_name,
389 port=self.hs2_port,
390 user_name=self.cluster.hadoop_user_name,
391 db_name=db_name,
392 use_kerberos=self.cluster.use_kerberos,
393 use_ssl=self.cluster.use_ssl,
394 ca_cert=self.cluster.ca_cert,
395 )
396 conn.cluster = self.cluster
397 return conn
398
399 @contextmanager
400 def cursor(self, db_name=None):

Callers 12

cursorMethod · 0.95
data_generator.pyFile · 0.45
_connectMethod · 0.45
_connectMethod · 0.45
_connectMethod · 0.45
_connectMethod · 0.45
hive_cursorFunction · 0.45
cursorFunction · 0.45
mainFunction · 0.45
DoMethod · 0.45

Calls 1

HiveConnectionClass · 0.90

Tested by 3

hive_cursorFunction · 0.36
cursorFunction · 0.36