Beeline远程连接Hive服务地址报错:jdbc:hive2://hadoop01:10000: java.net.ConnectException: Connection refused

时间:2024-03-30 14:04:39

克隆hadoop1输入:

beeline> !connect jdbc:hive2://hadoop01:10000 
Connecting to jdbc:hive2://hadoop01:10000
Enter username for jdbc:hive2://hadoop01:10000: root
Enter password for jdbc:hive2://hadoop01:10000: ******

错误代码:

Error: Could not open client transport with JDBC Uri: jdbc:hive2://hadoop01:10000: java.net.ConnectException: Connection refused (Connection refused) (state=08S01,code=0)

Beeline远程连接Hive服务地址报错:jdbc:hive2://hadoop01:10000: java.net.ConnectException: Connection refused

解决办法:

发现是息屏重连之后,hadoop1没有重新开启 bin/hiveserver2 服务  在hadoop1 重新开启bin/hiveserver2  就可以啦