Sergey Shelukhin created HBASE-21825: ----------------------------------------
Summary: proxy support for cross-machine links in master/RS UI Key: HBASE-21825 URL: https://issues.apache.org/jira/browse/HBASE-21825 Project: HBase Issue Type: Improvement Reporter: Sergey Shelukhin Follow-up to HBASE-21824. MasterStatusServlet needs to pass the current request URL to the template. Other than having to explicitly specify the proxy URL format (what if there are several proxies?), the best way to approach this seems to be for the above (optionally, if enabled) to check if URL authority includes the current server name; if not, do a string search for the server name and port in the URL. If found, create a URL format string to be used for all the links to other masters and RSes. E.g. if current URL is MASTERMACHINE:12355/master-status, nothing needs to be done. If it's 127.0.0.1:12355/master-status, similarly there's nothing to replace. If it's e.g. myproxy/foo/server/MASTERMACHINE/port/12355/master-status, RS link might be myproxy/foo/server/RSMACHINE/port/12356/rs-status. It can be disabled by default to avoid false positives. -- This message was sent by Atlassian JIRA (v7.6.3#76005)