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


![Hive [ 08S01] Could not open client transport with JDBC Uri: jdbc:hive2://hadoop102:10000: java.net Hive [ 08S01] Could not open client transport with JDBC Uri: jdbc:hive2://hadoop102:10000: java.net](http://www.mshxw.com/aiimages/31/991839.png)
