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

Method __init__

tests/common/impala_connection.py:1009–1015  ·  view source on GitHub ↗
(self, host_port, user=None)

Source from the content-addressed store, hash-verified

1007 to only one Thrift RPC.
1008 """
1009 def __init__(self, host_port, user=None):
1010 self.__host_port = host_port
1011 host, port = host_port.split(":")
1012 self.__conn = hs2.connect(host, port, auth_mechanism='NOSASL')
1013 self.__user = user if user is not None else getpass.getuser()
1014 self.__session = self.__conn.open_session(self.__user)
1015 self.__query_options = dict()
1016
1017 def connect(self):
1018 pass # Do nothing

Callers

nothing calls this directly

Calls 1

connectMethod · 0.45

Tested by

no test coverage detected