连接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

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐