使用快速入门指南安装了独立的hbase,但我需要将所有端口绑定到特定接口,因此我在conf/hbase-site.xml中设置了各种*bindaddress属性并运行了 bin/start-hbase.sh
,但zookeeper clientport仍然绑定到 :::2181
:
# netstat -antop | grep LISTEN | grep 4232/java
tcp6 0 0 :::2181 :::* LISTEN 4232/java
tcp6 0 0 10.134.6.221:41474 :::* LISTEN 4232/java
tcp6 0 0 10.134.6.221:16010 :::* LISTEN 4232/java
tcp6 0 0 127.0.0.1:34212 :::* LISTEN 4232/java
tcp6 0 0 127.0.0.1:34636 :::* LISTEN 4232/java
zookeeper的捆绑版本似乎是3.4.6
# ls lib/zookeeper-*
lib/zookeeper-3.4.6.jar
这应该有 clientPortAddress
选项:
clientPortAddress
New in 3.3.0: the address (ipv4, ipv6 or hostname) to listen for client connections; that is, the address that clients attempt to connect to. This is optional, by default we bind in such a way that any connection to the clientPort for any address/interface/nic on the server will be accepted.
但是像这样在 conf/hbase-site.xml
不起作用:
<configuration>
<property><name>hbase.rootdir</name><value>file:///root/hbase</value></property>
<property><name>hbase.zookeeper.property.dataDir</name><value>/root/zookeeper</value></property>
<property><name>hbase.zookeeper.property.clientPortAddress</name><value>10.134.6.221</value></property>
<property><name>hbase.master.info.bindAddress</name><value>10.134.6.221</value></property>
<property><name>hbase.regionserver.info.bindAddress</name><value>10.134.6.221</value></property>
</configuration>
我试图创建一个带有clientportaddress的zoo.cfg文件,并将它放在不同的目录和hbase\u类路径中,但hbase似乎没有找到它。
暂无答案!
目前还没有任何答案,快来回答吧!