Return-Path: Delivered-To: apmail-lucene-hadoop-dev-archive@locus.apache.org Received: (qmail 44645 invoked from network); 4 May 2006 22:40:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 4 May 2006 22:40:58 -0000 Received: (qmail 15933 invoked by uid 500); 4 May 2006 22:40:54 -0000 Delivered-To: apmail-lucene-hadoop-dev-archive@lucene.apache.org Received: (qmail 15798 invoked by uid 500); 4 May 2006 22:40:53 -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 15789 invoked by uid 99); 4 May 2006 22:40:53 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 May 2006 15:40:53 -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; Thu, 04 May 2006 15:40:53 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 62F607142AE for ; Thu, 4 May 2006 22:40:18 +0000 (GMT) Message-ID: <28818520.1146782418401.JavaMail.jira@brutus> Date: Thu, 4 May 2006 22:40:18 +0000 (GMT+00:00) From: "alan wootton (JIRA)" To: hadoop-dev@lucene.apache.org Subject: [jira] Created: (HADOOP-197) Hook InetAddress.getLocalHost().getHostName() to support cluster simulatation. 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 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: dfs, mapred Environment: all Reporter: alan wootton Priority: Minor Attachments: InetAddressWrapper.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