linux上连接hive客户端报错:Error: Could not open client transport with JDBC ...(state=08S01,code=0)

版权声明:本文为博主原创文章,未经博主允许不得转载。

Error: Could not open client transport with JDBC Uri: jdbc:hive2://mini1:10000: java.net.ConnectException: 拒绝连接 (state=08S01,code=0)

这个是因为hive中的hiveServer2没有启动起来,启动的命令是:切换到hive安装目录/${hive_home}/bin/hiveserver2

解决!

 

Hive thrift服务启动的步骤应该是:

1、启动hive:$ bin/hive

2、发布服务:hive/bin/hiveserver2

3、连接服务:hive/bin/beeline

在连接服务中输入命令

beeline> !connect jdbc:hive2://mini1:10000(mini1是hiveserver2所启动的那台主机名,端口默认是10000)

linux上连接hive客户端报错:Error: Could not open client transport with JDBC ...(state=08S01,code=0)_第1张图片

4、然后提示输入用户名密码

(用户名就写linux的登陆用户,密码默认为空)

 

你可能感兴趣的:(linux上连接hive客户端报错:Error: Could not open client transport with JDBC ...(state=08S01,code=0))