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

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

作者:互联网

启动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</name>
    <value>*</value>
</property>
<property>
    <name>hadoop.proxyuser.root.groups</name>
    <value>*</value>
</property>

标签:jdbc,10000,1.2,hive2,xxx,hive
来源: https://blog.csdn.net/ZHTTTCZY/article/details/110879902