Ah yes I was reading my netstat wrong, we have the same deal.

So hbase will use hostname to determine which IP you wish to
communicate on, then use that to bind and report to the master.

The setting     <name>hbase.regionserver.dns.interface</name>
should work the same as the similar setting in Hadoop.   If it does
not, sounds like a bug.

On Wed, Apr 28, 2010 at 5:11 PM, dmitri garbuzov <dgarbu...@gmail.com> wrote:
> I'm getting the same results without hbase.regionserver.dns.interface set
> and with it explicitly set  to "default"
>
> hbase-site.xml:
> <configuration>
>   <property>
>       <name>hbase.rootdir</name>
>       <value>hdfs://sns12.cs.princeton.edu:8020/hbase</value>
>   </property>
>   <property>
>       <name>hbase.master</name>
>       <value>sns12-virt.CS.Princeton.EDU:60000</value>
>   </property>
>   <property>
>       <name>hbase.cluster.distributed</name>
>       <value>true</value>
>   </property>
>   <property>
>       <name>hbase.zookeeper.quorum</name>
>
> <value>sns12-virt.CS.Princeton.EDU,sns13-virt.CS.Princeton.EDU,sns14-virt.CS.Princeton.EDU</value>
>   </property>
> </configuration>
>
>
> Ryan Rawson wrote:
>>
>> If you are using the "hbase.regionserver.dns.interface" option this is
>> what would happen - binding to a specific interface.
>>
>> What is your config looking like?
>>
>> On Wed, Apr 28, 2010 at 4:54 PM, dmitri garbuzov <dgarbu...@gmail.com>
>> wrote:
>>
>>>
>>> Doesn't look like it's binding to 0.0.0.0
>>>
>>> sudo lsof -i :60020
>>> COMMAND   PID   USER   FD   TYPE   DEVICE SIZE/OFF NODE NAME
>>> java    22530 hadoop   37u  IPv4 81808593      0t0  TCP
>>> sns12-virt.CS.Princeton.EDU:60020 (LISTEN)
>>>
>>> sudo netstat -an | grep 60020
>>> tcp        0      0 128.112.7.112:60020         0.0.0.0:*
>>> LISTEN
>>>
>>>
>>> Ryan Rawson wrote:
>>>
>>>>
>>>> HBase does bind to 0.0.0.0:60020.  It uses the hostname to report this
>>>> to META and that is how other people find the region servers.
>>>>
>>>> Are you not seeing this?
>>>>
>>>> On Wed, Apr 28, 2010 at 4:15 PM, dmitri garbuzov <dgarbu...@gmail.com>
>>>> wrote:
>>>>
>>>>
>>>>>
>>>>> Hi all,
>>>>>
>>>>> I'm trying to set up hbase on a cluster where each machine has multiple
>>>>> interfaces.  Hdfs worked right away since I could just set the name
>>>>> node
>>>>> to
>>>>> listen on 0.0.0.0, but hbase region servers seem to pick one of the
>>>>> interfaces at random, ignoring the hbase.regionserver.dns.interface
>>>>> option.
>>>>>  Is the dns.interface setting supposed to make hbase bind to a specific
>>>>> interface? Is there anything special I need to do to get this to work?
>>>>>
>>>>> dmitri
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>

Reply via email to