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


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

        

Reply via email to