bharathv commented on a change in pull request #1137: HBASE-23804: Fix default
master addr hostname in master registry
URL: https://github.com/apache/hbase/pull/1137#discussion_r376741998
##########
File path: hbase-common/src/main/java/org/apache/hadoop/hbase/util/DNS.java
##########
@@ -66,4 +68,24 @@ public static String getDefaultHost(String strInterface,
String nameserver)
return org.apache.hadoop.net.DNS.getDefaultHost(strInterface,
nameserver);
}
}
+
+ /**
+ * Get the configured hostname for master/regionserver. Gets the default
hostname if not specified
+ * in the configuration.
+ * @param conf Configuration to look up.
+ * @param isMaster True if master hostname needs to be looked up and false
for regionserver.
+ */
+ public static String getHostname(Configuration conf, boolean isMaster)
Review comment:
Done.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services