Return-Path: Delivered-To: apmail-hadoop-hbase-user-archive@locus.apache.org Received: (qmail 54453 invoked from network); 28 Apr 2008 16:46:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Apr 2008 16:46:23 -0000 Received: (qmail 65864 invoked by uid 500); 28 Apr 2008 16:46:24 -0000 Delivered-To: apmail-hadoop-hbase-user-archive@hadoop.apache.org Received: (qmail 65845 invoked by uid 500); 28 Apr 2008 16:46:24 -0000 Mailing-List: contact hbase-user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hbase-user@hadoop.apache.org Delivered-To: mailing list hbase-user@hadoop.apache.org Received: (qmail 65833 invoked by uid 99); 28 Apr 2008 16:46:24 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Apr 2008 09:46:24 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of bryan@rapleaf.com designates 208.96.16.213 as permitted sender) Received: from [208.96.16.213] (HELO mail.rapleaf.com) (208.96.16.213) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Apr 2008 16:45:29 +0000 Received: from mail.rapleaf.com (localhost.localdomain [127.0.0.1]) by mail.rapleaf.com (Postfix) with ESMTP id 4D5E854D7BE for ; Mon, 28 Apr 2008 09:45:49 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; h=Received:Mime-Version:In-Reply-To:References:Content-Type:Message-Id:Content-Transfer-Encoding:From:Subject:Date:To:X-Mailer; b=jLQa8WfiCF0eWGZ9Hg4ZspwtNkiuodt/TTyTkwa0OwU4jSWKC279RSEqDQittoSl4IxhzNCM2SfMHmdNz01KsPoJSvt6P34sDm7Mwu050I5ByYX9aFHfzjdkwVzIeT7wngJoOtsymjQ5VzLokLbB2sZgfovaD1b63Nrkc/J0S2Q=; c=nofws; d=rapleaf.com; q=dns; s=m1 Received: from [10.100.18.119] (unknown [10.100.18.119]) by mail.rapleaf.com (Postfix) with ESMTP id D122354D7A2 for ; Mon, 28 Apr 2008 09:45:48 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v753) In-Reply-To: References: Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Bryan Duxbury Subject: Re: HBase region server id problem with ipv6 address Date: Mon, 28 Apr 2008 09:45:48 -0700 To: hbase-user@hadoop.apache.org X-Mailer: Apple Mail (2.753) X-Virus-Checked: Checked by ClamAV on apache.org Zhou, Can you create an issue and post a patch of the changes you made? -Bryan On Apr 28, 2008, at 9:42 AM, Zhou wrote: > Hi, > > I've met a problem startup HBase. > > I setup hbase with hdfs, > My server's network card has a ipv4 address and also a ipv6 address. > > When I first startup hbase with default configuration file, > I found that the region server can't > register to master. And I found lots of 127.0.0.1 in log. > > So I suppose interface "default" would not work and add following: > > > dfs.datanode.dns.interface > eth0 > The name of the Network Interface from which a data > node should > report its IP address. > > > > However, when this is done. HBase master crashes; > And I see ipv6 addresses in the log. > > So I dig into the source code, > found that HBase fails to deal with IPv6 address. > > Details is in following: > In class org.apache.hadoop.hbase.HRegionServer > the method getThisIP() invoke the method of class belongs to Hadoop- > core package > The class is: org.apache.hadoop.net.DNS > the method is: getDefaultIP(String strInterface) > This method invokes another method in the same class: getIPs(String > strInterface) > Method getIPs always returns the first ip address no matter it is > ipv4 or ipv6 > > I have fixed it by modifying method of > org.apache.hadoop.net.DNS.getIPs(String > strInterface) > Such that it always returns ipv4 address > It is working now for me. > But when hadoop upgrades, I have to modify again. > > I hope that HBase can fix this problem. > > Many thanks, > > Zhou > >