Details
Description
While initializing RSRpcServices server name is formed as,
String name = rs.getProcessName() + "/" + initialIsa.toString();
So name will be like "regionserver/host_Name/host_IP:port".
During MetricsHBaseServer intializing, we create server context name using String contains() which will be wrong when machine hostname contain "master" words.
In MetricsHBaseServerSourceFactory,
protected static String createContextName(String serverName) { if (serverName.contains("HMaster") || serverName.contains("master")) { return "Master"; } else if (serverName.contains("HRegion") || serverName.contains("regionserver")) { return "RegionServer"; } return "IPC"; }
For example, "regionserver/node-master1-xyz/host-IP:16020"