[ 
https://issues.apache.org/jira/browse/HBASE-23804?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Bharath Vissapragada updated HBASE-23804:
-----------------------------------------
    Description: 
Currently, master RPC server (*not* info server) always binds to the address 
endpoint to which the default hostname of the server resolves to. However, 
master registry picks the default end point to connect to as "localhost:16000" 
when "hbase.masters" are not configured. This is leading to a mismatch because 
the server may not be listening on the loopback address. This is a problem only 
in the scripts (single proc/pseudo distributed modes) because these are the 
cases in which "hbase.masters" is not populated by default.

The fix is to pick the service endpoint the same way the RPC server does it.

  was:Currently master addr end point always defaults to localhost:16000 if 
nothing is configured. This is not always correct, especially if the master rpc 
end point binds to an address that is not loopback.  The default behavior for 
rpc server's bind address is to looks u the hostname and then bind to the 
address to which it resolves. Master registry should do the same.


> Fix default master addr hostname in master registry
> ---------------------------------------------------
>
>                 Key: HBASE-23804
>                 URL: https://issues.apache.org/jira/browse/HBASE-23804
>             Project: HBase
>          Issue Type: Bug
>          Components: Client
>    Affects Versions: 3.0.0, 2.3.0, 1.6.0, HBASE-18095
>            Reporter: Bharath Vissapragada
>            Assignee: Bharath Vissapragada
>            Priority: Major
>             Fix For: 3.0.0, 2.3.0
>
>
> Currently, master RPC server (*not* info server) always binds to the address 
> endpoint to which the default hostname of the server resolves to. However, 
> master registry picks the default end point to connect to as 
> "localhost:16000" when "hbase.masters" are not configured. This is leading to 
> a mismatch because the server may not be listening on the loopback address. 
> This is a problem only in the scripts (single proc/pseudo distributed modes) 
> because these are the cases in which "hbase.masters" is not populated by 
> default.
> The fix is to pick the service endpoint the same way the RPC server does it.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to