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 2017/03/14 13:42:33 UTC

knox git commit: KNOX-907 - Ambari Hive 2.0 view fix

Repository: knox
Updated Branches:
  refs/heads/master 8857bef1e -> d3c6aefd3


KNOX-907 - Ambari Hive 2.0 view fix


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

Branch: refs/heads/master
Commit: d3c6aefd31490ab9612b55c7106939e131a0d684
Parents: 8857bef
Author: Sumit Gupta <su...@apache.org>
Authored: Tue Mar 14 09:42:06 2017 -0400
Committer: Sumit Gupta <su...@apache.org>
Committed: Tue Mar 14 09:42:06 2017 -0400

----------------------------------------------------------------------
 .../src/main/resources/services/ambariui/2.2.0/service.xml      | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/knox/blob/d3c6aefd/gateway-service-definitions/src/main/resources/services/ambariui/2.2.0/service.xml
----------------------------------------------------------------------
diff --git a/gateway-service-definitions/src/main/resources/services/ambariui/2.2.0/service.xml b/gateway-service-definitions/src/main/resources/services/ambariui/2.2.0/service.xml
index 87078ef..f7760fe 100644
--- a/gateway-service-definitions/src/main/resources/services/ambariui/2.2.0/service.xml
+++ b/gateway-service-definitions/src/main/resources/services/ambariui/2.2.0/service.xml
@@ -70,6 +70,11 @@
           <rewrite apply="AMBARIUI/ambari/outbound/apiendpoint" to="response.body"/>
         </route>
 
+        <!-- Hive 2.0 view -->
+        <route path="/ambari/views/HIVE/**/assets/ui.js">
+            <rewrite apply="AMBARIUI/ambari/outbound/apiendpoint/noroot" to="response.body"/>
+        </route>
+
         <!-- No need to rewrite Slider View -->
     </routes>
     <dispatch classname="org.apache.hadoop.gateway.dispatch.PassAllHeadersDispatch"/>