Return-Path: X-Original-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-common-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 EAC06EE41 for ; Wed, 16 Jan 2013 16:56:13 +0000 (UTC) Received: (qmail 33357 invoked by uid 500); 16 Jan 2013 16:56:13 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 33323 invoked by uid 500); 16 Jan 2013 16:56:13 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 33314 invoked by uid 99); 16 Jan 2013 16:56:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Jan 2013 16:56:13 +0000 Date: Wed, 16 Jan 2013 16:56:13 +0000 (UTC) From: "Daryn Sharp (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HADOOP-9150) Unnecessary DNS resolution attempts for logical URIs 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/HADOOP-9150?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13555198#comment-13555198 ] Daryn Sharp commented on HADOOP-9150: ------------------------------------- Skimming the patch, to reduce adding more methods and complexity, maybe we should consider either of the following: # Default impl of {{getCanonicalUri()}} just returns {{getUri()}}. Filesystem like DFS can specifically override {{getCanonicalUri}} to call {{NetUtils.getCanonicalUri}}. The advantage is that it won't preclude other/future logical filesystems from utilizing a port. # {{getCanonicalUri()}} continues to call {{NetUtils.getCanonicalUri}}. Logical filesystems should have a default port of -1 (ie. URI considers this as no port), so perhaps {{NetUtils.getCanonicalUri}} can just return the given uri if there's no default port. I lean towards #1. > Unnecessary DNS resolution attempts for logical URIs > ---------------------------------------------------- > > Key: HADOOP-9150 > URL: https://issues.apache.org/jira/browse/HADOOP-9150 > Project: Hadoop Common > Issue Type: Bug > Components: fs/s3, ha, performance, viewfs > Affects Versions: 3.0.0, 2.0.2-alpha > Reporter: Todd Lipcon > Assignee: Todd Lipcon > Priority: Critical > Attachments: hadoop-9150.txt, hadoop-9150.txt, hadoop-9150.txt, hadoop-9150.txt, log.txt, tracing-resolver.tgz > > > In the FileSystem code, we accidentally try to DNS-resolve the logical name before it is converted to an actual domain name. In some DNS setups, this can cause a big slowdown - eg in one misconfigured cluster we saw a 2-3x drop in terasort throughput, since every task wasted a lot of time waiting for slow "not found" responses from DNS. -- 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