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 DDABC1020A for ; Mon, 16 Dec 2013 17:47:07 +0000 (UTC) Received: (qmail 41826 invoked by uid 500); 16 Dec 2013 17:47:07 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 41791 invoked by uid 500); 16 Dec 2013 17:47:07 -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 41782 invoked by uid 99); 16 Dec 2013 17:47:07 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Dec 2013 17:47:07 +0000 Date: Mon, 16 Dec 2013 17:47:07 +0000 (UTC) From: "Benoy Antony (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HDFS-5661) Browsing FileSystem via web ui, should use datanode's hostname instead of ip address 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-5661?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13849381#comment-13849381 ] Benoy Antony commented on HDFS-5661: ------------------------------------ DelegationToken is used to access Namenode. Here is the sequence: # NN generates DT and put the DT into the redirect URL # DN receives the redirect request. The AuthenticationFIlter authenticates using "hadoop.auth" cookie if available. # JSPs on the datadode server (i.e., tail / browseBlock / browseDirectory) access the NN using DelegationToken obtained as a URL parameter. For step 2 to work, the uri should have FQDN and the FQDN should be suffixed with "hadoop.http.authentication.cookie.domain" . One can verify the above by reviewing the code and testing it. Usage of IP address (introduced in HDFS-5307) broke the file browsing when security is turned on. What's the argument against using FQDN instead of ip address ? A hostname is always ensured during DN registration and the attached patch uses it. > Browsing FileSystem via web ui, should use datanode's hostname instead of ip address > ------------------------------------------------------------------------------------ > > Key: HDFS-5661 > URL: https://issues.apache.org/jira/browse/HDFS-5661 > Project: Hadoop HDFS > Issue Type: Bug > Affects Versions: 2.2.0 > Reporter: Benoy Antony > Assignee: Benoy Antony > Attachments: HDFS-5661.patch > > > If authentication is enabled on the web ui, then a cookie is used to keep track of the authentication information. There is normally a domain associated with the cookie. Since ip address doesn't have any domain , the cookie will not be sent by the browser while making http calls with ip address as the destination server. > This will break browsing files system via web ui , if authentication is enabled. > Browsing FileSystem via web ui, should use datanode's hostname instead of ip address. -- This message was sent by Atlassian JIRA (v6.1.4#6159)