【已解决】Hadoop集群中hive启动终止(hiveserver2&连接不上jdbc:hive2://localhost:10000 拒绝访问)

在启动Hadoop集群后,尝试运行Hive时遇到卡住的问题,且使用hiveserver2 & 或者通过Beeline连接jdbc:hive2://localhost:10000时遭到拒绝访问。为解决此问题,需要检查并更新core-site.xml配置,添加相应的权限设置。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

启动Hadoop后,输入hive
卡在以下:

Logging initialized using configuration in jar:file:/home/czy/modules/hive-1.2/lib/hive-common-1.2.0.jar!/hive-log4j.properties

或输入hiveserver2 &
beeline -u jdbc:hive2://master:10000 -n xxx

Error: Could not open client transport with JDBC Uri: jdbc:hive2://114.215.xxx.xxx:10000/default: java.net.ConnectException: Connection refused 拒绝访问 (state=08S01,code=0)

在core-site.xml中添加以下权限

<property>
    <name>hadoop.proxyuser.root.hosts
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值