You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@knox.apache.org by kr...@apache.org on 2019/07/22 14:23:19 UTC

[knox] branch master updated: KNOX-1593 - YARN v2 UI - Application - View logs for running application

This is an automated email from the ASF dual-hosted git repository.

krisden pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/knox.git


The following commit(s) were added to refs/heads/master by this push:
     new ae44c17  KNOX-1593 - YARN v2 UI - Application - View logs for running application
ae44c17 is described below

commit ae44c17b93d97b35160369c45e7cf41d702bb12a
Author: Prabhu Joseph <pj...@cloudera.com>
AuthorDate: Sat Jul 20 00:41:46 2019 +0530

    KNOX-1593 - YARN v2 UI - Application - View logs for running application
    
    Signed-off-by: Kevin Risden <kr...@apache.org>
---
 .../src/main/resources/services/yarnuiv2/3.0.0/rewrite.xml        | 8 ++++++++
 .../src/main/resources/services/yarnuiv2/3.0.0/service.xml        | 4 ++++
 2 files changed, 12 insertions(+)

diff --git a/gateway-service-definitions/src/main/resources/services/yarnuiv2/3.0.0/rewrite.xml b/gateway-service-definitions/src/main/resources/services/yarnuiv2/3.0.0/rewrite.xml
index 4b985e1..5b32b3d 100644
--- a/gateway-service-definitions/src/main/resources/services/yarnuiv2/3.0.0/rewrite.xml
+++ b/gateway-service-definitions/src/main/resources/services/yarnuiv2/3.0.0/rewrite.xml
@@ -156,6 +156,14 @@
     </content>
   </filter>
 
+  <rule dir="IN" name="YARNUIV2/yarnuiv2/inbound/nodemanager" pattern="*://*:*/**/yarnuiv2/nodemanager/{**}?{**}?{scheme}?{host}?{port}">
+    <rewrite template="{scheme}://{host}:{port}/ws/v1/node/{**}?{**}"/>
+  </rule>
+
+  <rule dir="OUT" name="YARNUIV2/yarnuiv2/outbound/nodemanager" pattern="{scheme}://{host}:{port}/ws/v1/node/{**}?{**}">
+    <rewrite template="{$frontend[url]}/yarnuiv2/nodemanager/{**}?{**}?{scheme}?{host}?{port}"/>
+  </rule>
+
   <rule flow="OR" dir="OUT" name="YARNUIV2/yarnuiv2/outbound/headers/index/location">
     <match pattern="{scheme}://{host}:{port}/{gateway}/{knoxsso}/{api}/{v}/websso?originalUrl={**}">
       <rewrite template="{scheme}://{host}:{port}/{gateway}/{knoxsso}/{api}/{v}/websso?originalUrl={$postfix[url,/yarnuiv2/]}"/>
diff --git a/gateway-service-definitions/src/main/resources/services/yarnuiv2/3.0.0/service.xml b/gateway-service-definitions/src/main/resources/services/yarnuiv2/3.0.0/service.xml
index 4a9d5ef..8b966a2 100644
--- a/gateway-service-definitions/src/main/resources/services/yarnuiv2/3.0.0/service.xml
+++ b/gateway-service-definitions/src/main/resources/services/yarnuiv2/3.0.0/service.xml
@@ -38,6 +38,10 @@
       <rewrite apply="YARNUIV2/yarnuiv2/inbound/timeline" to="request.url"/>
     </route>
 
+    <route path="/yarnuiv2/nodemanager/**?**">
+      <rewrite apply="YARNUIV2/yarnuiv2/inbound/nodemanager" to="request.url"/>
+    </route>
+
     <route path="/yarnuiv2/redirect">
       <rewrite apply="YARNUIV2/yarnuiv2/inbound/redirect" to="request.url"/>
     </route>