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/25 13:27:46 UTC
[knox] branch master updated: KNOX-1950 - YARN v2 UI - Tools - Yarn
Daemon Logs - /logs/stacks link broken
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 3a9dbea KNOX-1950 - YARN v2 UI - Tools - Yarn Daemon Logs - /logs/stacks link broken
3a9dbea is described below
commit 3a9dbea63cacc9105e183cb5bfdb5bb2075938aa
Author: Prabhu Joseph <pj...@cloudera.com>
AuthorDate: Thu Jul 25 15:02:26 2019 +0530
KNOX-1950 - YARN v2 UI - Tools - Yarn Daemon Logs - /logs/stacks link broken
Signed-off-by: Kevin Risden <kr...@apache.org>
---
.../src/main/resources/services/yarnuiv2/3.0.0/rewrite.xml | 4 ++++
.../src/main/resources/services/yarnuiv2/3.0.0/service.xml | 4 ++++
2 files changed, 8 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 ef291f9..e51657e 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
@@ -21,6 +21,10 @@
<rewrite template="{$serviceUrl[YARNUIV2]}/ui2/"/>
</rule>
+ <rule dir="IN" name="YARNUIV2/yarnuiv2/inbound/stacks" pattern="*://*:*/**/yarnuiv2/logs/stacks">
+ <rewrite template="{$serviceUrl[YARNUIV2]}/stacks"/>
+ </rule>
+
<rule dir="IN" name="YARNUIV2/yarnuiv2/inbound/redirect" pattern="*://*:*/**/yarnuiv2/redirect">
<rewrite template="{$serviceUrl[YARNUIV2]}/ui2/index.html"/>
</rule>
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 27ac2e2..54103ed 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
@@ -50,6 +50,10 @@
<rewrite apply="YARNUIV2/yarnuiv2/inbound/redirect" to="request.url"/>
</route>
+ <route path="/yarnuiv2/logs/stacks">
+ <rewrite apply="YARNUIV2/yarnuiv2/inbound/stacks" to="request.url"/>
+ </route>
+
<route path="/yarnuiv2/**?**">
<rewrite apply="YARNUIV2/yarnuiv2/inbound/query" to="request.url"/>
<rewrite apply="YARNUIV2/yarnuiv2/outbound/query" to="response.body"/>