2019-4-26-已经解决-beeline连接hive2 出现 java.net.ConnectException: Connection refused (Connection refused)

在尝试使用beeline连接Hive2时遇到java.net.ConnectException: Connection refused错误。起初怀疑是权限问题,但进一步检查日志发现并非如此。最终通过修改Hive配置文件成功解决了问题,强调多查看日志对于解决问题的重要性。
摘要由CSDN通过智能技术生成

_

[centos@s101 ~]$ beeline -u jdbc:hive2://s101:10000
which: no hbase in (/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/soft/jdk/bin:/soft/hadoop/bin:/soft/hadoop/sbin:/soft/zk/bin:/soft/hive/bin:/soft/sqoop/bin:/soft/flume/bin:/home/centos/.local/bin:/home/centos/bin)
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/soft/apache-hive-2.1.1-bin/lib/log4j-slf4j-impl-2.4.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/soft/hadoop-2.7.3/share/hadoop/common/lib/slf4j-log4j12-1.7.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory]
Connecting to jdbc:hive2://s101:10000
19/04/26 15:41:48 [main]: WARN jdbc.HiveConnection: Failed to connect to s101: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://s101:10000: java.net.ConnectException: Connection refused (Connection refused) (state=08S01,code=0)
Beeline version 2.1.1 by Apache Hive
beeline>

以前连接的时候是没有问题的,但是今天想用一下突然发现hive连接不上去,发

评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值