You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "stack (JIRA)" <ji...@apache.org> on 2010/09/25 08:44:33 UTC

[jira] Commented: (HBASE-2722) Replace IP with hostname in ZK for servers

    [ https://issues.apache.org/jira/browse/HBASE-2722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12914772#action_12914772 ] 

stack commented on HBASE-2722:
------------------------------

The names of znodes in zk are now 'servername', no longer startcode, as in:

{code}
hbase(main):004:0> zk 'ls /hbase/rs'
[sv2borg184,60020,1285371621579, sv2borg181,60020,1285371621576, sv2borg188,60020,1285371621953, sv2borg187,60020,1285371621951, sv2borg182,60020,1285371621575, sv2borg183,60020,12]
{code}

A cluster status looks like this now:

{code}
hbase(main):009:0> status 'detailed'
version 0.89.0-SNAPSHOT
0 regionsInTransition
8 live servers
    suborg187:60020 1285371621951
        requests=3448, regions=16, usedHeap=662, maxHeap=987
        usertable,user938428723,1285395596706.9881589ac4a52859591835f9b578fad2.
            stores=1, storefiles=1, storefileSizeMB=213, memstoreSizeMB=30, storefileIndexSizeMB=0
....
{code}

i..e. we're showing hostnames.... plus ports.

Can we close this issue 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.