[ 
https://issues.apache.org/jira/browse/KNOX-975?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16090751#comment-16090751
 ] 

Larry McCay commented on KNOX-975:
----------------------------------

from patch on KNOX-974:

+  <!-- Route in rules  -->
+  <!-- namenode rules  -->
   <rule dir="IN" name="HDFSUI/hdfs/inbound/namenode/root"
pattern="*://*:*/**/hdfs/">
+    <rewrite template="{$serviceUrl[HDFSUI]}/"/>
+  </rule>
+  <rule dir="IN" name="HDFSUI/hdfs/inbound/namenode/dfs"
pattern="*://*:*/**/hdfs/dfshealth.html">
     <rewrite template="{$serviceUrl[HDFSUI]}/dfshealth.html"/>
   </rule>
   <rule dir="IN" name="HDFSUI/hdfs/inbound/namenode/path"
pattern="*://*:*/**/hdfs/{**}">
@@ -26,77 +31,101 @@
   <rule dir="IN" name="HDFSUI/hdfs/inbound/namenode/query"
pattern="*://*:*/**/hdfs/{**}?{**}">
     <rewrite template="{$serviceUrl[HDFSUI]}/{**}?{**}"/>
   </rule>

See the namenode path in there?
That is namenode.

>From patch on KNOX-975:

diff --git 
a/gateway-service-definitions/src/main/resources/services/nodemanagerui/2.7.1/rewrite.xml
b/gateway-service-definitions/src/main/resources/services/nodemanagerui/2.7.1/rewrite.xml
new file mode 100644
index 00000000..d288ecaf
--- /dev/null
+++ 
b/gateway-service-definitions/src/main/resources/services/nodemanagerui/2.7.1/rewrite.xml
@@ -0,0 +1,121 @@

+<rules>
+<!-- Inbound rules -->
+<!-- Resource manager routing in rules -->
+<!--
+     {$frontend[url] is used through the rewrite and is it equivalent
to {$serviceUrl[NODEUI]},  this the endpoint url for the service.
+     e.g. http://host.com:8042
+-->
+
+<rule dir="IN" name="NODEUI/logs"
pattern="*://*:*/**/node/logs/?{host}?{port}">
+    <rewrite template="{$serviceScheme[NODEUI]}://{host}:{port}/logs/"/>
+</rule>

This is YARN NodeManager stuff.



On Mon, Jul 17, 2017 at 6:37 PM, Jeffrey E Rodriguez (JIRA) <[email protected]



> Add DATANODE REST jmx  and  NAMENODE RPC services needed by HDFS UI
> -------------------------------------------------------------------
>
>                 Key: KNOX-975
>                 URL: https://issues.apache.org/jira/browse/KNOX-975
>             Project: Apache Knox
>          Issue Type: Bug
>          Components: Server
>            Reporter: Jeffrey E  Rodriguez
>            Assignee: Jeffrey E  Rodriguez
>             Fix For: 0.13.0
>
>         Attachments: KNOX-975.001.patch
>
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> Add DataNode/NameNode services



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to