Return-Path: X-Original-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D4DDFFAA5 for ; Tue, 1 Oct 2013 16:41:29 +0000 (UTC) Received: (qmail 7304 invoked by uid 500); 1 Oct 2013 16:41:29 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 6792 invoked by uid 500); 1 Oct 2013 16:41:27 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-issues@hadoop.apache.org Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 6764 invoked by uid 99); 1 Oct 2013 16:41:25 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Oct 2013 16:41:25 +0000 Date: Tue, 1 Oct 2013 16:41:25 +0000 (UTC) From: "Daryn Sharp (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HDFS-5263) Delegation token is not created generateNodeDataHeader method of NamenodeJspHelper$NodeListJsp MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HDFS-5263?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13783109#comment-13783109 ] Daryn Sharp commented on HDFS-5263: ----------------------------------- Looks good with a cursory glance, but I'm a bit concerned about storing the token in the instance. Is that necessary? > 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.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 -> 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.1#6144)