You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Ahad Rana (JIRA)" <ji...@apache.org> on 2012/10/12 02:39:03 UTC

[jira] [Created] (HADOOP-8919) Namenode Kerberos Login does not use proper hostname for host qualified hdfs principal name.

Ahad Rana created HADOOP-8919:
---------------------------------

             Summary: Namenode Kerberos Login does not use proper hostname for host qualified hdfs principal name.
                 Key: HADOOP-8919
                 URL: https://issues.apache.org/jira/browse/HADOOP-8919
             Project: Hadoop Common
          Issue Type: Bug
          Components: security
    Affects Versions: 2.0.2-alpha, 2.0.1-alpha, 2.0.0-alpha, 2.0.3-alpha
         Environment: CDH4U1 using Kerberos on Ubuntu 12.01
            Reporter: Ahad Rana


The Namenode uses the loginAsNameNodeUser method in NameNode.java to login using the hdfs principal. This method in turn invokes SecurityUtil.login with a hostname (last parameter) obtained via a call to InetAddress.getHostName. This call does not always return the fully qualified host name, and thus causes the namenode to login to fail due to kerberos's inability to find a matching hdfs principal in the hdfs.keytab file. Instead it should use InetAddress.getCanonicalHostName. This is consistent with what is used internally by SecurityUtil.java to login in other services, such as the DataNode. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (HADOOP-8919) Namenode Kerberos Login does not use proper hostname for host qualified hdfs principal name.

Posted by "Brahma Reddy Battula (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-8919?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13474778#comment-13474778 ] 

Brahma Reddy Battula commented on HADOOP-8919:
----------------------------------------------

Hi Ahad Rana,

I think,,this is same as HDFS-3980..Please refer following comment..

https://issues.apache.org/jira/browse/HDFS-3980?focusedCommentId=13469267&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-13469267..

Please correct me If I am wrong..
                
> Namenode Kerberos Login does not use proper hostname for host qualified hdfs principal name.
> --------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-8919
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8919
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: security
>    Affects Versions: 2.0.0-alpha, 2.0.1-alpha, 2.0.2-alpha, 2.0.3-alpha
>         Environment: CDH4U1 using Kerberos on Ubuntu 12.01
>            Reporter: Ahad Rana
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> The Namenode uses the loginAsNameNodeUser method in NameNode.java to login using the hdfs principal. This method in turn invokes SecurityUtil.login with a hostname (last parameter) obtained via a call to InetAddress.getHostName. This call does not always return the fully qualified host name, and thus causes the namenode to login to fail due to kerberos's inability to find a matching hdfs principal in the hdfs.keytab file. Instead it should use InetAddress.getCanonicalHostName. This is consistent with what is used internally by SecurityUtil.java to login in other services, such as the DataNode. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (HADOOP-8919) Namenode Kerberos Login does not use proper hostname for host qualified hdfs principal name.

Posted by "Ahad Rana (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-8919?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ahad Rana updated HADOOP-8919:
------------------------------


Moving to HADOOP-HDFS ? 
                
> Namenode Kerberos Login does not use proper hostname for host qualified hdfs principal name.
> --------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-8919
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8919
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: security
>    Affects Versions: 2.0.0-alpha, 2.0.1-alpha, 2.0.2-alpha, 2.0.3-alpha
>         Environment: CDH4U1 using Kerberos on Ubuntu 12.01
>            Reporter: Ahad Rana
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> The Namenode uses the loginAsNameNodeUser method in NameNode.java to login using the hdfs principal. This method in turn invokes SecurityUtil.login with a hostname (last parameter) obtained via a call to InetAddress.getHostName. This call does not always return the fully qualified host name, and thus causes the namenode to login to fail due to kerberos's inability to find a matching hdfs principal in the hdfs.keytab file. Instead it should use InetAddress.getCanonicalHostName. This is consistent with what is used internally by SecurityUtil.java to login in other services, such as the DataNode. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira