当前位置:   article > 正文

!connect jdbc:hive2://node03:10000;报错Could not open connection to the HS2 server._could not open connection to the hs2 server. pleas

could not open connection to the hs2 server. please check the server uri and

Could not open connection to the HS2 server. Please check the server URI and if the URI is correct, then ask the administrator to check the server status.

Error: Could not open client transport with JDBC Uri: jdbc:hive2://node03:10000: java.net.ConnectException: Connection refused (Connection refused) (state=08S01,code=0)

原因:jps查看进程,发现没有开启hive后台服务

解决办法:开启后台启动服务

(1)输入命令nohup hive --service hiveserver2 &回车

(2)jps查看进程,可以发现多了个RunJar的进程。

(3)再登录及可成功,如图:

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/菜鸟追梦旅行/article/detail/634753
推荐阅读
相关标签
  

闽ICP备14008679号