from pyhive.hive import connect
con = connect(host=IP, port=10000, auth='KERBEROS', kerberos_service_name="hive")
cursor = con.cursor()
cursor.execute('show tables')
datas = cursor.fetchall()
print(datas)
cursor.close()
con.close()
from pyhive.hive import connect
con = connect(host=IP, port=10000, auth='KERBEROS', kerberos_service_name="hive")
cursor = con.cursor()
cursor.execute('show tables')
datas = cursor.fetchall()
print(datas)
cursor.close()
con.close()