You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@knox.apache.org by mo...@apache.org on 2021/10/05 15:05:05 UTC
[knox] branch master updated: KNOX-2675 Oozie Console URL on the
web UI should be a Knox URL (#506)
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 d6e62f2 KNOX-2675 Oozie Console URL on the web UI should be a Knox URL (#506)
d6e62f2 is described below
commit d6e62f27e47910d78f6b425ebf96ec05f1e083ed
Author: Denes Bodo <di...@apache.org>
AuthorDate: Tue Oct 5 17:04:55 2021 +0200
KNOX-2675 Oozie Console URL on the web UI should be a Knox URL (#506)
---
.../src/main/resources/services/oozie/5.0.0/rewrite.xml | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/gateway-service-definitions/src/main/resources/services/oozie/5.0.0/rewrite.xml b/gateway-service-definitions/src/main/resources/services/oozie/5.0.0/rewrite.xml
index 5e75256..caafcbc 100644
--- a/gateway-service-definitions/src/main/resources/services/oozie/5.0.0/rewrite.xml
+++ b/gateway-service-definitions/src/main/resources/services/oozie/5.0.0/rewrite.xml
@@ -130,4 +130,14 @@
</content>
</filter>
-</rules>
\ No newline at end of file
+ <rule dir="OUT" name="OOZIE/oozie/console-url" pattern="*://*:*/proxy/{**}/">
+ <rewrite template="{gateway.url}/yarn/proxy/{**}"/>
+ </rule>
+
+ <filter name="OOZIE/oozie/jobinfo">
+ <content type="*/json">
+ <apply path="$.actions..consoleUrl" rule="OOZIE/oozie/console-url" />
+ </content>
+ </filter>
+
+</rules>