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 379b162  KNOX-1968 - YARN UI V2 proxied via Knox does not rewrite 
Spark stderr/stdout links
379b162 is described below

commit 379b162d50e7364086fcc6953db2626a66ec33ba
Author: Prabhu Joseph <[email protected]>
AuthorDate: Wed Aug 7 17:44:53 2019 +0530

    KNOX-1968 - YARN UI V2 proxied via Knox does not rewrite Spark 
stderr/stdout links
    
    Signed-off-by: Kevin Risden <[email protected]>
---
 .../src/main/resources/services/yarnui/2.7.0/rewrite.xml                | 2 ++
 .../src/main/resources/services/yarnuiv2/3.0.0/rewrite.xml              | 2 ++
 2 files changed, 4 insertions(+)

diff --git 
a/gateway-service-definitions/src/main/resources/services/yarnui/2.7.0/rewrite.xml
 
b/gateway-service-definitions/src/main/resources/services/yarnui/2.7.0/rewrite.xml
index 434c9c3..620af98 100644
--- 
a/gateway-service-definitions/src/main/resources/services/yarnui/2.7.0/rewrite.xml
+++ 
b/gateway-service-definitions/src/main/resources/services/yarnui/2.7.0/rewrite.xml
@@ -202,6 +202,8 @@
         <apply path="/proxy/[^']*" rule="YARNUI/yarn/outbound/apps/history1"/>
         <apply 
path="(https?:)?//[^/':,]+:[\d]+/node/containerlogs/container(_[^/':,]+)+/[^/':,]+"
 rule="YARNUI/yarn/outbound/node/containerlogs"/>
     </content>
+    <content type="*/json">
+    </content>
 </filter>
 <filter name="YARNUI/yarn/outbound/filter/cluster">
     <content type="*/html">
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 5171222..9330751 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
@@ -195,6 +195,8 @@
       <apply path="https?://[^/':,]+:[\d][^']*" 
rule="YARNUIV2/yarnuiv2/outbound/node2"/>
       <apply path="/cluster/[^']*" 
rule="YARNUIV2/yarnuiv2/outbound/cluster/common"/>
     </content>
+    <content type="*/json">
+    </content>
   </filter>
 
   <rule flow="OR" dir="OUT" name="YARNUIV2/yarnuiv2/outbound/cluster/common">

Reply via email to