pyhive python连接hive
生活随笔
收集整理的这篇文章主要介绍了
pyhive python连接hive
小编觉得挺不错的,现在分享给大家,帮大家做个参考.
from pyhive import hive
conn = hive.Connection(host='1*.30',auth='LDAP',port=10000,username='*',password='*',database='*')
cursor = conn.cursor()
cursor.execute("select * from dp_ods.* where etl_date='2018-11-13'")
总结
以上是生活随笔为你收集整理的pyhive python连接hive的全部内容,希望文章能够帮你解决所遇到的问题。
- 上一篇: 现代控制理论(1)——状态空间表达式
- 下一篇: python连接hive--Pyhive