thrift.transport.TTransport.TTransportException: TSocket read 0 byte

本文共有437个字,关键词:

问题:使用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
版权声明:本文为作者原创,如需转载须联系作者本人同意,未经作者本人同意不得擅自转载。
添加新评论
暂无评论