Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 69D869C1A for ; Sat, 23 Jun 2012 15:19:44 +0000 (UTC) Received: (qmail 45816 invoked by uid 500); 23 Jun 2012 15:19:43 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 45778 invoked by uid 500); 23 Jun 2012 15:19:43 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 45769 invoked by uid 99); 23 Jun 2012 15:19:43 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 23 Jun 2012 15:19:43 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id 9B25D1416E9 for ; Sat, 23 Jun 2012 15:19:43 +0000 (UTC) Date: Sat, 23 Jun 2012 15:19:43 +0000 (UTC) From: "nkeywal (JIRA)" To: issues@hbase.apache.org Message-ID: <429669174.47796.1340464783639.JavaMail.jiratomcat@issues-vm> In-Reply-To: <43973215.13822.1319557472103.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HBASE-4671) HBaseTestingUtility unable to connect to regionserver because of 127.0.0.1 / 127.0.1.1 discrepancy MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HBASE-4671?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13399974#comment-13399974 ] nkeywal commented on HBASE-4671: -------------------------------- >From the hbase reference guide: http://hbase.apache.org/book.html#os {noformat} 2.2.3. Loopback IP HBase expects the loopback IP address to be 127.0.0.1. Ubuntu and some other distributions, for example, will default to 127.0.1.1 and this will cause problems for you. /etc/hosts should look something like this: 127.0.0.1 localhost 127.0.0.1 ubuntu.ubuntu-domain ubuntu {noformat} > HBaseTestingUtility unable to connect to regionserver because of 127.0.0.1 / 127.0.1.1 discrepancy > -------------------------------------------------------------------------------------------------- > > Key: HBASE-4671 > URL: https://issues.apache.org/jira/browse/HBASE-4671 > Project: HBase > Issue Type: Bug > Components: test > Affects Versions: 0.90.4 > Environment: At least Ubuntu 11.10 with a default hosts file. > Reporter: Ferdy Galema > > When /etc/hosts contains following lines (and this is not uncommon) it will cause HBaseTestingUtility to malfunction. > 127.0.0.1 localhost > 127.0.1.1 myMachineName > Symptoms: > 2011-10-25 17:38:30,875 WARN master.AssignmentManager - Failed assignment of -ROOT-,,0.70236052 to serverName=localhost,34462,1319557102914, load=(requests=0, regions=0, usedHeap=46, maxHeap=865), trying to assign elsewhere instead; retry=0 > org.apache.hadoop.hbase.client.RetriesExhaustedException: Failed setting up proxy interface org.apache.hadoop.hbase.ipc.HRegionInterface to /127.0.0.1:34462 after attempts=1 > because > 2011-10-25 17:38:28,371 INFO regionserver.HRegionServer - Serving as localhost,34462,1319557102914, RPC listening on /127.0.1.1:34462, sessionid=0x1333bbb7a180002 > caused by /127.0.0.1:34462 vs /127.0.1.1:34462 > Workaround: > Changing 127.0.1.1 to 127.0.0.1 works. > Permanent solution: > Dunno, my understanding of inner workings is not sufficient enough. Although it seems like it has something to do with changing the machine name from myMachineName to localhost during the test: > 2011-10-25 17:38:28,056 INFO regionserver.HRegionServer - Master passed us address to use. Was=myMachineName:34462, Now=localhost:34462 -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira