title: Hbase start failed because of The hostname of regionserver cannot be set to localhost
body: <p>I have three nodes to start Hbase cluster, but it failed to start HMenter and  Regionservers, the exception as follows:</p>
  
  <pre><code>FATAL [main] regionserver.RSRpcServices: The hostname of regionserver cannot be set to localhost in a fully-distributed setup because it won't be reachable. See "Getting Started" for more information.
  2015-04-05 09:11:58,160 ERROR [main] master.HMasterCommandLine: Master exiting
  java.lang.RuntimeException: Failed construction of Master: class org.apache.hadoop.hbase.master.HMaster
      at org.apache.hadoop.hbase.master.HMaster.constructMaster(HMaster.java:1982)
      at org.apache.hadoop.hbase.master.HMasterCommandLine.startMaster(HMasterCommandLine.java:198)
      at org.apache.hadoop.hbase.master.HMasterCommandLine.run(HMasterCommandLine.java:139)
      at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
      at org.apache.hadoop.hbase.util.ServerCommandLine.doMain(ServerCommandLine.java:126)
      at org.apache.hadoop.hbase.master.HMaster.main(HMaster.java:1996)
  #127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
  Caused by: java.io.IOException: The hostname of regionserver cannot be set to localhost in a fully-distributed setup because it won't be reachable.
  </code></pre>
  
  <p>It was saying the regionservers's host name is Localhost. But it's not, my two regionservers's hostnames are dev1.test.local and dev2.test.local respectively.
  Also I designated the IPs in the configuration file RegionServers. 
  I'm curious why the HMaster think the RegionServer's hostname is localhost?
  Thanks in Advance! </p>