Emil Kleszcz created KNOX-3074:
----------------------------------

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


The current rewrite rules defined in:
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}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to