[ https://issues.apache.org/jira/browse/KNOX-3074?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Emil Kleszcz updated KNOX-3074: ------------------------------- Description: The current rewrite rules defined in: [https://github.com/apache/knox/blob/master/gateway-service-definitions/src/main/resources/services/hbaseui/2.1.0/rewrite.xml] Are not supporting table.jsp (not working) and snapshot.jsp endpoints. For example: {code:java} /table.jsp?name=namespace%3tablename /snapshot.jsp?name=snapshotname /userSnapshots.jsp /hbase/webui/api/v1/admin/cluster_metrics/live_servers{code} What is returned in exchange for example for table.jsp in 2.5.10 is: {code:java} Table not ready Go Back, or wait for the redirect. {code} I will prepare a pull request of the new service routings and rewrite rules needed for 2.5.10. was: The current rewrite rules defined in: https://github.com/apache/knox/blob/master/gateway-service-definitions/src/main/resources/services/hbaseui/2.1.0/rewrite.xml Are not supporting table.jsp (not working) and snapshot.jsp endpoints. For example: {code:java} /table.jsp?name=namespace%3tablename /snapshot.jsp?name=snapshotname{code} What is returned in exchange is: {code:java} Table not ready Go Back, or wait for the redirect. {code} Using this example rules are not working as expected: {code:java} <!-- INBOUND RULE --> <rule dir="IN" name="HBASEUI/hbase/inbound/table" pattern="*://*:*/**/hbase/webui/master/table.jsp?name={name}"> <rewrite template="{$serviceScheme[HBASEUI]}://{$backendHost[HBASEUI]}:{$backendPort[HBASEUI]}/table.jsp?name={name}" /> </rule>{code} {code:java} <!-- OUTBOUND RULES --> <rule dir="OUT" name="HBASEUI/hbase/outbound/table" pattern="/table.jsp?name={name}&{**}"> <rewrite template="{$frontend[url]}/hbase/webui/master/table.jsp?name={name}&{**}" /> </rule> <rule dir="OUT" name="HBASEUI/tables1" pattern="*://{$backendHost[HBASEUI]}:{$backendPort[HBASEUI]}/table.jsp?name={name}"> <rewrite template="{$frontend[url]}/hbase/webui/master/table.jsp?name={name}" /> </rule> {code} > Add HBase UI proxying for table.jsp and snapshot.jsp end points in HBase 2.5 > ---------------------------------------------------------------------------- > > Key: KNOX-3074 > URL: https://issues.apache.org/jira/browse/KNOX-3074 > Project: Apache Knox > Issue Type: New Feature > Affects Versions: 2.1.0 > Reporter: Emil Kleszcz > Priority: Major > > The current rewrite rules defined in: > [https://github.com/apache/knox/blob/master/gateway-service-definitions/src/main/resources/services/hbaseui/2.1.0/rewrite.xml] > Are not supporting table.jsp (not working) and snapshot.jsp endpoints. For > example: > {code:java} > /table.jsp?name=namespace%3tablename > /snapshot.jsp?name=snapshotname > /userSnapshots.jsp > /hbase/webui/api/v1/admin/cluster_metrics/live_servers{code} > What is returned in exchange for example for table.jsp in 2.5.10 is: > {code:java} > Table not ready > Go Back, or wait for the redirect. {code} > I will prepare a pull request of the new service routings and rewrite rules > needed for 2.5.10. -- This message was sent by Atlassian Jira (v8.20.10#820010)