我的 Hbase 区域服务器正在监听 127.0.0.1。如何让它在 0.0.0.0 上列出?我尝试了 hbase.regionserver.info.bindAddress 的 channing 值,但这似乎不起作用。
问问题
1933 次
2 回答
2
为了以(伪)分布式模式在外部接口上公开端口 60020,HBase 希望您的 /etc/hosts 以某种方式显示。如果您运行 Ubuntu,您可能会在 /etc/hosts 中找到类似的内容:(我假设您的主机名是regionserver
)
127.0.0.1 localhost
127.0.1.1 regionserver
选择具有 IP 地址的网络接口,例如 eth0
192.168.1.2
并替换127.0.1.1
为该地址。编辑
hbase/conf/regionservers
以在此处输入您的主机名。区域服务器
重新启动 HBase 并尝试从远程计算机连接到端口 60020。
希望有帮助!
于 2014-09-14T09:05:45.373 回答
1
Instead of hbase.regionserver.info.bindAddress
, you should employ hbase.regionserver.ipc.address
property and set it to desired IP address or 0.0.0.0
mask. For example:
<property>
<name>hbase.regionserver.ipc.address</name>
<value>0.0.0.0</value>
</property>
Remember:
- this should be applied on each machine with Region Server running if you have a cluster instead of single machine.
- you have to restart Region Server component (not Master component) to apply the settings.
- all
*.info.*
properties are about web UI, not core functionality
于 2018-10-19T12:52:59.597 回答