hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "stack (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (HBASE-2722) Replace IP with hostname in ZK for servers
Date Mon, 27 Sep 2010 22:24:33 GMT

     [ https://issues.apache.org/jira/browse/HBASE-2722?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

stack resolved HBASE-2722.

    Resolution: Fixed

bq. We could I assume. The difference is that if we were to store full HServerAddress we would
also get the IP address and would not have to rely on some on-the-spot reverse lookups.

We don't do the reverse lookups any more. The only lookup done now is when regionserver reports
into master, the master looks up the regionservers address, and then in the response to reportServerStartup,
the master tells the regionserver how to identify itself ever after.  We could afterward become
untethered from DNS and all should just keep working.

The other tendency is a move away from IPs altogether to rather have servers identify themselves
by hostname.

I'm going to close this issue as mostly done.  Lets open a new issue if there is something
more you'd like done Lars?

> 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.90.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.

View raw message