Exemplo n.º 1
0
 def connect(self, db_name=None):
     conn = HiveConnection(host_name=self.hs2_host_name,
                           port=self.hs2_port,
                           user_name=self.cluster.hadoop_user_name,
                           db_name=db_name,
                           use_kerberos=self.cluster.is_kerberized)
     conn.cluster = self.cluster
     return conn
Exemplo n.º 2
0
 def connect(self, db_name=None):
   conn = HiveConnection(
       host_name=self.hs2_host_name,
       port=self.hs2_port,
       user_name=self.cluster.hadoop_user_name,
       db_name=db_name,
       use_kerberos=self.cluster.use_kerberos,
       use_ssl=self.cluster.use_ssl,
       ca_cert=self.cluster.ca_cert,
   )
   conn.cluster = self.cluster
   return conn
Exemplo n.º 3
0
 def connect(self, db_name=None):
     conn = HiveConnection(
         host_name=self.hs2_host_name,
         port=self.hs2_port,
         user_name=self.cluster.hadoop_user_name,
         db_name=db_name,
         use_kerberos=self.cluster.use_kerberos,
         use_ssl=self.cluster.use_ssl,
         ca_cert=self.cluster.ca_cert,
     )
     conn.cluster = self.cluster
     return conn
Exemplo n.º 4
0
 def connect(self, db_name=None):
   conn = HiveConnection(host_name=self.hs2_host_name, port=self.hs2_port,
       user_name=self.cluster.hadoop_user_name, db_name=db_name,
       use_kerberos=self.cluster.is_kerberized)
   conn.cluster = self.cluster
   return conn