Replace IP with hostname in ZK for servers
------------------------------------------

                 Key: HBASE-2722
                 URL: https://issues.apache.org/jira/browse/HBASE-2722
             Project: HBase
          Issue Type: Improvement
    Affects Versions: 0.20.4
            Reporter: Lars George
             Fix For: 0.21.0


See http://review.hbase.org/r/162/ for details, we currently store the IP 
address of the master in ZK, not its hostname. 

{code}
  public ClusterStatus getClusterStatus() {
    ClusterStatus status = new ClusterStatus();
    status.setHBaseVersion(VersionInfo.getVersion());
    HServerAddress hsa = zooKeeperWrapper.readMasterAddress(null);
    status.setActiveMaster(hsa != null && hsa.getBindAddress() != null ?
      hsa.getBindAddress() : "");
    status.setServerInfo(serverManager.getServersToServerInfo().values());
    status.setDeadServers(serverManager.getDeadServers());
    status.setRegionsInTransition(this.regionManager.getRegionsInTransition());
    return status;
  }
{code}

Maybe best is to store a full HServerAddress to be able to print 
"hostname/ip-address" style similar to other places in the system?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to