Return-Path: Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: (qmail 71495 invoked from network); 19 Oct 2010 22:11:52 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 19 Oct 2010 22:11:52 -0000 Received: (qmail 55985 invoked by uid 500); 19 Oct 2010 22:11:52 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 55943 invoked by uid 500); 19 Oct 2010 22:11:52 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-issues@hadoop.apache.org Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 55935 invoked by uid 99); 19 Oct 2010 22:11:52 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Oct 2010 22:11:52 +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.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Oct 2010 22:11:49 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o9JMBSRj009677 for ; Tue, 19 Oct 2010 22:11:28 GMT Message-ID: <21086214.57251287526288327.JavaMail.jira@thor> Date: Tue, 19 Oct 2010 18:11:28 -0400 (EDT) From: "Todd Lipcon (JIRA)" To: hdfs-issues@hadoop.apache.org Subject: [jira] Updated: (HDFS-1464) Fix reporting of 2NN address when dfs.secondary.http.address is default (wildcard) In-Reply-To: <13650131.56271287524971223.JavaMail.jira@thor> 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/HDFS-1464?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Todd Lipcon updated HDFS-1464: ------------------------------ Assignee: Todd Lipcon Status: Patch Available (was: Open) Simple patch that restores the pre-HDFS-1080 behavior for the case when the configured address is wildcard. No unit test included because this section of code is very difficult to isolate in a true unit test (it uses static calls to TransferFsImage, etc), and in minicluster environments the configs are all set properly. > Fix reporting of 2NN address when dfs.secondary.http.address is default (wildcard) > ---------------------------------------------------------------------------------- > > Key: HDFS-1464 > URL: https://issues.apache.org/jira/browse/HDFS-1464 > Project: Hadoop HDFS > Issue Type: Bug > Components: name-node > Affects Versions: 0.22.0 > Reporter: Todd Lipcon > Assignee: Todd Lipcon > Attachments: hdfs-1464.txt > > > HDFS-1080 broke the way that the 2NN identifies its own hostname to the NN during checkpoint upload. It used to use the local hostname, which as HDFS-1080 pointed out was error prone if it had multiple interfaces, etc. But now, with the default setting of dfs.secondary.http.address, the 2NN reports "0.0.0.0", which won't work either. > We should look for the wildcard bind address and use the local hostname in that case, like we used to. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.