hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vasu Mariyala (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HDFS-5263) Delegation token is not created generateNodeDataHeader method of NamenodeJspHelper$NodeListJsp
Date Wed, 25 Sep 2013 23:04:02 GMT
Vasu Mariyala created HDFS-5263:
-----------------------------------

             Summary: Delegation token is not created generateNodeDataHeader method of NamenodeJspHelper$NodeListJsp
                 Key: HDFS-5263
                 URL: https://issues.apache.org/jira/browse/HDFS-5263
             Project: Hadoop HDFS
          Issue Type: Bug
          Components: namenode, webhdfs
            Reporter: Vasu Mariyala


When Kerberos authentication is enabled, we are unable to browse to the data nodes using (
Name node web page --> Live Nodes --> Select any of the data nodes). The reason behind
this is the delegation token is not provided as part of the url in the method (generateNodeDataHeader
method of NodeListJsp)

{code}
      String url = HttpConfig.getSchemePrefix() + d.getHostName() + ":"
          + d.getInfoPort()
          + "/browseDirectory.jsp?namenodeInfoPort=" + nnHttpPort + "&dir="
          + URLEncoder.encode("/", "UTF-8")
          + JspHelper.getUrlParam(JspHelper.NAMENODE_ADDRESS, nnaddr);
{code}

But browsing the file system using name node web page --> Browse the file system ->
<any directory> is working fine as the redirectToRandomDataNode method of NamenodeJspHelper
creates the delegation token

{code}
    redirectLocation = HttpConfig.getSchemePrefix() + fqdn + ":" + redirectPort
        + "/browseDirectory.jsp?namenodeInfoPort="
        + nn.getHttpAddress().getPort() + "&dir=/"
        + (tokenString == null ? "" :
           JspHelper.getDelegationTokenUrlParam(tokenString))
        + JspHelper.getUrlParam(JspHelper.NAMENODE_ADDRESS, addr);
{code}

I will work on providing a patch for this issue.

--
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

Mime
View raw message