You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Hadoop QA (JIRA)" <ji...@apache.org> on 2015/05/02 06:34:13 UTC
[jira] [Commented] (HDFS-5263) Delegation token is not created
generateNodeDataHeader method of NamenodeJspHelper$NodeListJsp
[ https://issues.apache.org/jira/browse/HDFS-5263?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14524716#comment-14524716 ]
Hadoop QA commented on HDFS-5263:
---------------------------------
\\
\\
| (x) *{color:red}-1 overall{color}* |
\\
\\
|| Vote || Subsystem || Runtime || Comment ||
| {color:red}-1{color} | patch | 0m 1s | The patch command could not apply the patch during dryrun. |
\\
\\
|| Subsystem || Report/Notes ||
| Patch URL | http://issues.apache.org/jira/secure/attachment/12606158/HDFS-5263-rev1.patch |
| Optional Tests | javadoc javac unit findbugs checkstyle |
| git revision | trunk / f1a152c |
| Console output | https://builds.apache.org/job/PreCommit-HDFS-Build/10570/console |
This message was automatically generated.
> 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
> Attachments: HDFS-5263-rev1.patch, HDFS-5263.patch
>
>
> 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 was sent by Atlassian JIRA
(v6.3.4#6332)