You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@knox.apache.org by su...@apache.org on 2015/04/15 02:30:10 UTC

knox git commit: KNOX-530 fixed oozie rewrite rules to handle missing port information

Repository: knox
Updated Branches:
  refs/heads/master 48fba646f -> cc27d465e


KNOX-530 fixed oozie rewrite rules to handle missing port information


Project: http://git-wip-us.apache.org/repos/asf/knox/repo
Commit: http://git-wip-us.apache.org/repos/asf/knox/commit/cc27d465
Tree: http://git-wip-us.apache.org/repos/asf/knox/tree/cc27d465
Diff: http://git-wip-us.apache.org/repos/asf/knox/diff/cc27d465

Branch: refs/heads/master
Commit: cc27d465e116ff7445b562dcb421ad96f717f8e0
Parents: 48fba64
Author: Sumit Gupta <su...@apache.org>
Authored: Tue Apr 14 20:29:20 2015 -0400
Committer: Sumit Gupta <su...@apache.org>
Committed: Tue Apr 14 20:29:20 2015 -0400

----------------------------------------------------------------------
 .../src/main/resources/services/oozie/4.0.0/rewrite.xml        | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/knox/blob/cc27d465/gateway-service-definitions/src/main/resources/services/oozie/4.0.0/rewrite.xml
----------------------------------------------------------------------
diff --git a/gateway-service-definitions/src/main/resources/services/oozie/4.0.0/rewrite.xml b/gateway-service-definitions/src/main/resources/services/oozie/4.0.0/rewrite.xml
index d3c52bb..bd8002b 100644
--- a/gateway-service-definitions/src/main/resources/services/oozie/4.0.0/rewrite.xml
+++ b/gateway-service-definitions/src/main/resources/services/oozie/4.0.0/rewrite.xml
@@ -42,13 +42,13 @@
 
     <rule name="OOZIE/oozie/hdfs-path" flow="OR">
         <match pattern="/~">
-            <rewrite template="hdfs://{$serviceMappedHost[NAMENODE]}:{$servicePort[NAMENODE]}/user/{$username}"/>
+            <rewrite template="hdfs://{$serviceMappedAddr[NAMENODE]}/user/{$username}"/>
         </match>
         <match pattern="/~/{path=**}">
-            <rewrite template="hdfs://{$serviceMappedHost[NAMENODE]}:{$servicePort[NAMENODE]}/user/{$username}/{path=**}"/>
+            <rewrite template="hdfs://{$serviceMappedAddr[NAMENODE]}/user/{$username}/{path=**}"/>
         </match>
         <match pattern="{path=**}">
-            <rewrite template="hdfs://{$serviceMappedHost[NAMENODE]}:{$servicePort[NAMENODE]}/{path=**}"/>
+            <rewrite template="hdfs://{$serviceMappedAddr[NAMENODE]}/{path=**}"/>
         </match>
     </rule>