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

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)再登录及可成功,如图:

发布了31 篇原创文章 · 获赞 20 · 访问量 3084

猜你喜欢

转载自blog.csdn.net/fengge18306/article/details/105190952