问题:使用pyhive连接hive数据库时报错
解决:可能因为hive未启动
方法:
1、启动hdfs、yarn
2、启动hiveserver2
3、确保连接写的成功
conn = hive.Connection(
host=qy_host,
port=10000,
auth=“CUSTOM”,
database=‘default’,
username=qy_user,
password=qy_pw)
hive_cur = hive_conn.cursor()
参考:
https://blog.csdn.net/weixin_41108545/article/details/107792786