无法使用IP地址
问题描述:
我runnnig蜂巢服务hiveserver2在蜂房的site.xml无法使用IP地址
<property>
<name>hive.server2.thrift.bind.host</name>
<value>ip_address</value>
</property>
<property>
<name>hive.server2.authentication</name>
<value>NONE</value>
</property>
以下配置从我的本地(同一台机器)JDBC客户端,我能够连接到hiveserver2连接远程hiveserver2
jdbc:hive2://id_address:10000/default
howerver当我从其他机器运行我的jdbc客户端我得到连接超时问题。
请注意,我可以用ip_address ping到hiveserver主机。
什么可能是问题?由于我使用的是IP地址,我还需要检查/ etc/hosts中的条目吗?
答
问题解决
问题在于防火墙,配置单元配置是正确的。
我暂时禁用了iptable。
# services iptables stop
以下链接中的答案有助于解决通用连接问题。