[ https://issues.apache.org/jira/browse/HBASE-8645?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13672491#comment-13672491 ]
stack commented on HBASE-8645: ------------------------------ The SeverName.toShortString drops the startcode and intentionally makes a String that does not look like a ServerName#toString, rather it is a host+port only host is missing domain. Here is sample of what logging looks like now: {code} 2013-05-31 02:25:03,091 DEBUG [M:0;asf000:41822] zookeeper.ZKUtil(433): master:41822-0x13ef867090c0000 Set watcher on znode that does not yet exist, /hbase/running 2013-05-31 02:25:03,115 WARN [M:0;asf000:41822] hbase.ZNodeClearer(57): Environment variable HBASE_ZNODE_FILE not set; znodes will not be cleared on crash by start scripts (Longer MTTR!) 2013-05-31 02:25:03,115 INFO [M:0;asf000:41822] master.ActiveMasterManager(170): Registered Active Master=asf000.sp2.ygridcore.net,41822,1369967102774 2013-05-31 02:25:03,123 INFO [M:0;asf000:41822] master.SplitLogManager(201): timeout=120000, unassigned timeout=180000 2013-05-31 02:25:03,124 INFO [M:0;asf000:41822] master.SplitLogManager(210): distributedLogReplay = false 2013-05-31 02:25:03,127 INFO [M:0;asf000:41822] master.SplitLogManager(1082): Found 0 orphan tasks and 0 rescan nodes 2013-05-31 02:25:03,182 DEBUG [M:0;asf000:41822] util.FSUtils(757): Created cluster ID file at hdfs://localhost:52392/user/jenkins/hbase/hbase.id with ID: df6e7248-191d-479e-86da-6bd2a844e00b 2013-05-31 02:25:03,189 INFO [pool-1-thread-1] regionserver.ShutdownHook(87): Installed shutdown hook thread: Shutdownhook:RS:0;asf000:47701 2013-05-31 02:25:03,190 INFO [pool-1-thread-1] regionserver.ShutdownHook(87): Installed shutdown hook thread: Shutdownhook:RS:1;asf000:48644 2013-05-31 02:25:03,192 INFO [pool-1-thread-1] regionserver.ShutdownHook(87): Installed shutdown hook thread: Shutdownhook:RS:2;asf000:47305 2013-05-31 02:25:03,198 INFO [RS:1;asf000:48644] zookeeper.RecoverableZooKeeper(119): Process identifier=regionserver:48644 connecting to ZooKeeper ensemble=localhost:54561 2013-05-31 02:25:03,201 INFO [RS:2;asf000:47305] zookeeper.RecoverableZooKeeper(119): Process identifier=regionserver:47305 connecting to ZooKeeper ensemble=localhost:54561 2013-05-31 02:25:03,204 INFO [RS:0;asf000:47701] zookeeper.RecoverableZooKeeper(119): Process identifier=regionserver:47701 connecting to ZooKeeper ensemble=localhost:54561 2013-05-31 02:25:03,207 DEBUG [RS:1;asf000:48644-EventThread] zookeeper.ZooKeeperWatcher(307): regionserver:48644 Received ZooKeeper Event, type=None, state=SyncConnected, path=null 2013-05-31 02:25:03,207 DEBUG [RS:2;asf000:47305-EventThread] zookeeper.ZooKeeperWatcher(307): regionserver:47305 Received ZooKeeper Event, type=None, state=SyncConnected, path=null 2013-05-31 02:25:03,209 DEBUG [RS:1;asf000:48644-EventThread] zookeeper.ZooKeeperWatcher(384): regionserver:48644-0x13ef867090c0001 connected 2013-05-31 02:25:03,210 DEBUG [RS:2;asf000:47305-EventThread] zookeeper.ZooKeeperWatcher(384): regionserver:47305-0x13ef867090c0002 connected 2013-05-31 02:25:03,211 DEBUG [RS:0;asf000:47701-EventThread] zookeeper.ZooKeeperWatcher(307): regionserver:47701 Received ZooKeeper Event, type=None, state=SyncConnected, path=null 2013-05-31 02:25:03,212 DEBUG [RS:0;asf000:47701-EventThread] zookeeper.ZooKeeperWatcher(384): regionserver:47701-0x13ef867090c0003 connected 2013-05-31 02:25:03,212 DEBUG [RS:1;asf000:48644] zookeeper.ZKUtil(431): regionserver:48644-0x13ef867090c0001 Set watcher on existing znode=/hbase/master 2013-05-31 02:25:03,213 DEBUG [RS:2;asf000:47305] zookeeper.ZKUtil(431): regionserver:47305-0x13ef867090c0002 Set watcher on existing znode=/hbase/master 2013-05-31 02:25:03,214 DEBUG [RS:0;asf000:47701] zookeeper.ZKUtil(431): regionserver:47701-0x13ef867090c0003 Set watcher on existing znode=/hbase/master 2013-05-31 02:25:03,221 DEBUG [RS:0;asf000:47701] zookeeper.ZKUtil(433): regionserver:47701-0x13ef867090c0003 Set watcher on znode that does not yet exist, /hbase/running 2013-05-31 02:25:03,221 DEBUG [RS:2;asf000:47305] zookeeper.ZKUtil(433): regionserver:47305-0x13ef867090c0002 Set watcher on znode that does not yet exist, /hbase/running 2013-05-31 02:25:03,222 DEBUG [RS:1;asf000:48644] zookeeper.ZKUtil(433): regionserver:48644-0x13ef867090c0001 Set watcher on znode that does not yet exist, /hbase/running {code} > Change ServerName so it uses hostname only, not FQDN hostnames > --------------------------------------------------------------- > > Key: HBASE-8645 > URL: https://issues.apache.org/jira/browse/HBASE-8645 > Project: HBase > Issue Type: Sub-task > Reporter: stack > Assignee: stack > Attachments: 8645.txt, 8645.txt, 8645v2.txt, 8645v3.txt, 8645v4.txt, > 8645v5.txt > > > No need of dragging around domain part of a hostname when we make > ServerNames. Rather than do a.example.org,60000,12345 as we currently do, > just output: 1,60000,12345. This will make names displayed in UI and or shell > smaller. Will also tighten up our logs a little, especially where ServerName > is part of a thrad name. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira