ndimiduk 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_r376631649
 
 

 ##########
 File path: hbase-common/src/main/java/org/apache/hadoop/hbase/HConstants.java
 ##########
 @@ -181,7 +181,11 @@
   /** Configuration key for the list of master host:ports **/
   public static final String MASTER_ADDRS_KEY = "hbase.masters";
 
-  public static final String MASTER_ADDRS_DEFAULT =  "localhost:" + 
DEFAULT_MASTER_PORT;
+  // key to the config parameter of server hostname
+  // the specification of server hostname is optional. The hostname should be 
resolvable from
+  // both master and region server
+  public static final String RS_HOSTNAME_KEY = "hbase.regionserver.hostname";
 
 Review comment:
   Don't add these here. In [the 
book](http://hbase.apache.org/book.html#hbase_default_configurations), they're 
considered "expert" configuration params (and the `master` version appears to 
not be documented at all).
   
   Instead, add them to the `DNS` class, from which they'll be used. Also, it's 
`InterfaceAudience.Private` so we have more maintenance/refactoring flexibility 
there. And don't lose their `InterfaceAudience.LimitedPrivate` annotations when 
you move them.

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

Reply via email to