错误:Error: Could not open client transport with JDBC Uri: jdbc:hive2://ducking:10000: java.net.Connec

启动Hive客户端[root@node02 hive-2.3.6]# beeline -u jdbc:hive2://node01:10000 -n root -p 1213 时报下面错:

Error: Could not open client transport with JDBC Uri: jdbc:hive2://ducking:10000: java.net.ConnectException: Connection refused (Connection refused) (state=08S01,code=0)
Beeline version 2.3.6 by Apache Hive
beeline>

解决方法(客户端操作这些):

[admin1@hadoop1 ~]$ cd ~/hive/conf/
[admin1@hadoop1 ~]$ cp hive-env.sh.template hive-env.sh

在hive-env.sh文件里加下面的内容(客户端操作这些):

[admin1@hadoop1 conf]$ vi hive-env.sh
export HADOOP_HOME=/home/hadoop/apps/hadoop-2.7.2                                                                                                                 
[admin1@hadoop1 conf]$ source hive-env.sh

OK,问题解决。

你可能感兴趣的:(Hive安装问题)