连接hive时出现了一个错误:
[ 08S01] Could not open client transport with JDBC Uri: jdbc:hive2://hadoop102:10000: java.net.ConnectException: Connection refused: connect
java.net.ConnectException: Connection refused: connect.

 之前一直好好的,断了重新连接或者填写密码都不行,中间挂起了一次虚拟机。查询后发现可能是hiveserver2没有开启。

开启hiveserver2:

hive --service hiveserver2

重新测试。

可以了。

参考自:

(1条消息) DataGrip连接hive报错:[ 08S01] Could not open client transport with JDBC Uri: jdbc:hive2://hadoop102:1000_tutouxiaocaiji的博客-CSDN博客_hive08s01

Logo

魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。

更多推荐