Return-Path: Delivered-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Received: (qmail 12539 invoked from network); 29 Nov 2009 18:42:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 29 Nov 2009 18:42:50 -0000 Received: (qmail 88801 invoked by uid 500); 29 Nov 2009 18:42:50 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 88733 invoked by uid 500); 29 Nov 2009 18:42:50 -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 88723 invoked by uid 99); 29 Nov 2009 18:42:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 29 Nov 2009 18:42:50 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 29 Nov 2009 18:42:41 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 9EAF6234C052 for ; Sun, 29 Nov 2009 10:42:20 -0800 (PST) Message-ID: <555745920.1259520140641.JavaMail.jira@brutus> Date: Sun, 29 Nov 2009 18:42:20 +0000 (UTC) From: "Christian Kunz (JIRA)" To: common-issues@hadoop.apache.org Subject: [jira] Updated: (HADOOP-6397) topology script called with host names instead of IP addresses In-Reply-To: <1893554762.1259519900657.JavaMail.jira@brutus> 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/HADOOP-6397?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Christian Kunz updated HADOOP-6397: ----------------------------------- Attachment: HADOOP-6397.patch Patch for trunk. Works for hadoop-0.20.1 when in the file names java is replaced by core. > topology script called with host names instead of IP addresses > -------------------------------------------------------------- > > Key: HADOOP-6397 > URL: https://issues.apache.org/jira/browse/HADOOP-6397 > Project: Hadoop Common > Issue Type: Bug > Components: util > Affects Versions: 0.20.1 > Reporter: Christian Kunz > Attachments: HADOOP-6397.patch > > > According to the 'Hadoop Rack Awareness' section on http://hadoop.apache.org/common/docs/r0.20.0/cluster_setup.html the script/program topology.script.file.name can assume that names are passed in as IP addresses. > This seems to work for hdfs, but the rack-awareness of the JobTracker does not always work, depending on the hostnames of the cluster, because of a bug in the method normalizeHostName of org.apache.hadoop.net.NetUtils.java: > It returns the host name as-is when it decides that the string passed-in is already an IP but actually it checks whether the string starts with a valid hex character! > There is no need to check at all, because InetAddress.getByName is smart enough to not do a dns lookup when the name is an IP address. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.