how can I make hbase region server listen on 0.0.0.0?
-
26-12-2019 - |
Pergunta
My Hbase region server is listening on 127.0.0.1. How do I make it liste on 0.0.0.0 ? I tried channing value of hbase.regionserver.info.bindAddress but that doesn't seem to be working.
Solução
In order to expose port 60020 on an external interface in (pseudo)distributed mode, HBase wants your /etc/hosts to look a certain way. If you run Ubuntu, you're likely to find something like this in your /etc/hosts: (I'm assuming your hostname is regionserver
)
127.0.0.1 localhost
127.0.1.1 regionserver
Select the a network interface with an IP address, e.g. eth0 with
192.168.1.2
and replace127.0.1.1
with that address.Edit the
hbase/conf/regionservers
to enter your hostname there.regionserver
Restart HBase and try to connect to port 60020 from a remote machine.
Hope that helps!
Outras dicas
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