Return-Path: X-Original-To: apmail-hadoop-mapreduce-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-mapreduce-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 3BBC888E7 for ; Thu, 1 Sep 2011 16:32:35 +0000 (UTC) Received: (qmail 94208 invoked by uid 500); 1 Sep 2011 16:32:35 -0000 Delivered-To: apmail-hadoop-mapreduce-issues-archive@hadoop.apache.org Received: (qmail 94139 invoked by uid 500); 1 Sep 2011 16:32:34 -0000 Mailing-List: contact mapreduce-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: mapreduce-issues@hadoop.apache.org Delivered-To: mailing list mapreduce-issues@hadoop.apache.org Received: (qmail 94131 invoked by uid 99); 1 Sep 2011 16:32:34 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Sep 2011 16:32:34 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Sep 2011 16:32:31 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 8BED34ADC0 for ; Thu, 1 Sep 2011 16:32:10 +0000 (UTC) Date: Thu, 1 Sep 2011 16:32:10 +0000 (UTC) From: "Nathan Roberts (JIRA)" To: mapreduce-issues@hadoop.apache.org Message-ID: <1942503132.7222.1314894730569.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1887929704.321.1312247667217.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (MAPREDUCE-2764) Fix renewal of dfs delegation tokens MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/MAPREDUCE-2764?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13095387#comment-13095387 ] Nathan Roberts commented on MAPREDUCE-2764: ------------------------------------------- After jitendra latest comment on HADOOP-7510, I think I know the answer to #2 (please tell me if this if incorrect). When a new (205) client gets redirected to an old (204) datanode to stream the file contents, the service information within the token is ignored. The kind has to be right, but the service can be pretty much anything because the servlet is going to reconstruct the service field anyway. > Fix renewal of dfs delegation tokens > ------------------------------------ > > Key: MAPREDUCE-2764 > URL: https://issues.apache.org/jira/browse/MAPREDUCE-2764 > Project: Hadoop Map/Reduce > Issue Type: Bug > Reporter: Daryn Sharp > Assignee: Daryn Sharp > Fix For: 0.20.205.0 > > Attachments: MAPREDUCE-2764-2.patch, MAPREDUCE-2764.patch, delegation.patch > > > The JT may have issues renewing hftp tokens which disrupt long distcp jobs. The problem is the JT's delegation token renewal code is built on brittle assumptions. The token's service field contains only the "ip:port" pair. The renewal process assumes that the scheme must be hdfs. If that fails due to a {{VersionMismatchException}}, it tries https based on another assumption that it must be hftp if it's not hdfs. A number of other exceptions, most commonly {{IOExceptions}}, can be generated which fouls up the renewal since it won't fallback to https. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira