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()
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)