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

more 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 40485c5  KNOX-1744 - Add rewrite rules to fix executor stdout/stderr 
links in Spark History Server UI (#120)
40485c5 is described below

commit 40485c5ac3edb492ffd2494d03f3a46f6eab23dd
Author: Ankur Gupta <[email protected]>
AuthorDate: Wed Jul 17 19:34:12 2019 -0700

    KNOX-1744 - Add rewrite rules to fix executor stdout/stderr links in Spark 
History Server UI (#120)
---
 .../src/main/resources/services/sparkhistoryui/2.3.0/rewrite.xml | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git 
a/gateway-service-definitions/src/main/resources/services/sparkhistoryui/2.3.0/rewrite.xml
 
b/gateway-service-definitions/src/main/resources/services/sparkhistoryui/2.3.0/rewrite.xml
index 4b7acaa..c65ce91 100644
--- 
a/gateway-service-definitions/src/main/resources/services/sparkhistoryui/2.3.0/rewrite.xml
+++ 
b/gateway-service-definitions/src/main/resources/services/sparkhistoryui/2.3.0/rewrite.xml
@@ -89,4 +89,13 @@
       <apply path="Location" 
rule="SPARKHISTORYUI/sparkhistory/outbound/headers/location/sso"/>
     </content>
   </filter>
+
+  <!-- re-write rules for yarn container logs -->
+  <rule dir="OUT" 
name="SPARKHISTORYUI/sparkhistory/outbound/yarn/containerlogs" 
pattern="{scheme}://{host}:{port}/node/containerlogs/{**}">
+    <rewrite 
template="{$frontend[url]}/yarn/nodemanager/node/containerlogs/{**}?{scheme}?{host}?{port}"/>
+  </rule>
+
+  <rule dir="OUT" 
name="SPARKHISTORYUI/sparkhistory/outbound/yarn/containerlogs2" 
pattern="{scheme}://{host}:{port}/node/containerlogs/{**}?{**}">
+    <rewrite 
template="{$frontend[url]}/yarn/nodemanager/node/containerlogs/{**}?{**}?{scheme}?{host}?{port}"/>
+  </rule>
 </rules>

Reply via email to