Return-Path: Delivered-To: apmail-lucene-hadoop-dev-archive@locus.apache.org Received: (qmail 28413 invoked from network); 5 May 2006 23:24:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 5 May 2006 23:24:07 -0000 Received: (qmail 21846 invoked by uid 500); 5 May 2006 23:24:06 -0000 Delivered-To: apmail-lucene-hadoop-dev-archive@lucene.apache.org Received: (qmail 21823 invoked by uid 500); 5 May 2006 23:24:06 -0000 Mailing-List: contact hadoop-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hadoop-dev@lucene.apache.org Delivered-To: mailing list hadoop-dev@lucene.apache.org Received: (qmail 21814 invoked by uid 99); 5 May 2006 23:24:06 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 May 2006 16:24:05 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 May 2006 16:24:05 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id D4BE8410008 for ; Fri, 5 May 2006 23:23:28 +0000 (GMT) Message-ID: <29956484.1146871408857.JavaMail.jira@brutus> Date: Fri, 5 May 2006 23:23:28 +0000 (GMT+00:00) From: "alan wootton (JIRA)" To: hadoop-dev@lucene.apache.org Subject: [jira] Updated: (HADOOP-197) Hook InetAddress.getLocalHost().getHostName() to support cluster simulatation. In-Reply-To: <28818520.1146782418401.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/HADOOP-197?page=all ] alan wootton updated HADOOP-197: -------------------------------- Attachment: conf_getHostName.patch patch to Configuration so it will return the local host name. > Hook InetAddress.getLocalHost().getHostName() to support cluster simulatation. > ------------------------------------------------------------------------------ > > Key: HADOOP-197 > URL: http://issues.apache.org/jira/browse/HADOOP-197 > Project: Hadoop > Type: Improvement > Components: mapred, dfs > Environment: all > Reporter: alan wootton > Priority: Minor > Attachments: InetAddressWrapper.patch, conf_getHostName.patch > > I have been running a simulation for weeks now (and also a 30 machine crawl). To make it work I need to sometimes > let DataNodes, and TaskTrackers think they have a different machine-name than the one in InetAddress.getLocalHost() > The patch is: > 1) replace InetAddress.getLocalHost().getHostName() with xxxx > 1.a)xxxx could be "conf.get("inetaddress.localhost.name",InetAddress.getLocalHost().getHostName())" > 1.b)or, xxxx could be a static call, I chose the latter: "InetAddressWrapper.getLocalHostName(conf)" > 2) InetAddressWrapper.getLocalHostName(conf) checks the config for a hostname, and then calls InetAddress.getLocalHost().getHostName() > There's 3 places where it happens: > DataNode > DFSClient > TaskTracker > I did not patch the two tests that call InetAddress because they are not really using hostname. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira