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