[ 
https://issues.apache.org/jira/browse/HBASE-11293?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14021361#comment-14021361
 ] 

Devaraj Das commented on HBASE-11293:
-------------------------------------

The problem is that the hostname passed to the login call ends up being 0.0.0.0 
instead of the actual hostname (the substitution of _HOST string is not the 
problem).
In HMaster.java, the server's hostname is also obtained via Hadoop's DNS 
library code
{noformat}
String hostname = Strings.domainNamePointerToHostName(DNS.getDefaultHost(
{noformat}
In Hadoop's DNS.java, by default this hostname would be given by 
InetAddress.getLocalHost().getCanonicalHostName(). Maybe, we should pass the 
same in the login call ?

> Master and Region servers fail to start when 
> hbase.master.ipc.address=0.0.0.0, hbase.regionserver.ipc.address=0.0.0.0 and 
> Kerberos is enabled
> ---------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HBASE-11293
>                 URL: https://issues.apache.org/jira/browse/HBASE-11293
>             Project: HBase
>          Issue Type: Bug
>            Reporter: Michael Harp
>
> Setting 
> {code}
> hbase.master.ipc.address=0.0.0.0
> hbase.regionserver.ipc.address=0.0.0.0
> {code}
> causes the _HOST substitution in hbase/_h...@example.com to result in 
> "hbase/0:0:0:0:0:0:0:0...@example.com which in turn causes kerberos 
> authentication to fail.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to