hive远程连接失败?Could not open client transport with JDBC Uri: jdbc:hive2:异常解决

        有一段时间没有关集群了。今天由于业务需求需要重启集群,结果在使用DataGrip连接hive数据库的时候报了这个异常!

java.net.ConnectException: Connection refused: connect.

        也就是连接失败。

        解决方案也很简单,我们只需要开启Hive的远程连接即可,hive --service hiveserver2
hive远程连接失败?Could not open client transport with JDBC Uri: jdbc:hive2:异常解决
        当使用远程连接工具连接Hive成功时,控制台会打印ok

hive远程连接失败?Could not open client transport with JDBC Uri: jdbc:hive2:异常解决
        那么,你们的问题解决了么?hive远程连接失败?Could not open client transport with JDBC Uri: jdbc:hive2:异常解决