Could not open connection to the HS2 server.Please check the server URI and if the URI is correct已解决

ゞ 浴缸里的玫瑰 2024-03-23 11:52 150阅读 0赞

问题描述

我关机前还连接hive客户端使用的,结果虚拟机关机10分钟后再开机连接就连接失败了,报错信息如下:

[main]: WARN jdbc.HiveConnection: Failed to connect to node1:10000
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://node1:10000: java.net.ConnectException: Connection refused (Connection refused) (state=08S01,code=0)

具体报错如下图所示,为红色和黄色画框区域。
在这里插入图片描述

解决方法

因为我前不久使用过它,说明不是用户权限不够

方法一、我在输入username的时候先多按了几次Backspace将可能存在的空格删除掉,然后输入root,再输入密码后连接成功,如上图所示的绿色和橙色区域。

方法二、进入beeline之后,等待一段时间再尝试登录node1即可。


以上就是本文全部内容,如果它对您有帮助,请您帮我点个赞,这对我真的很重要

发表评论

表情:
评论列表 (有 0 条评论,150人围观)

还没有评论,来说两句吧...

相关阅读