Repository: knox
Updated Branches:
  refs/heads/master 9f666c391 -> b751c72e9


KNOX-1181: Add support for RANGER and RANGERUI service endpoint discovery via 
Ambari


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

Branch: refs/heads/master
Commit: b751c72e93266fd83355d80bc536a75828bb5e30
Parents: 9f666c3
Author: Phil Zampino <pzamp...@apache.org>
Authored: Tue Feb 13 17:31:49 2018 -0500
Committer: Phil Zampino <pzamp...@apache.org>
Committed: Tue Feb 13 17:31:49 2018 -0500

----------------------------------------------------------------------
 ...iscovery-component-config-mapping.properties |  2 +-
 .../ambari-service-discovery-url-mappings.xml   | 32 +++++++++++++++++---
 2 files changed, 28 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/knox/blob/b751c72e/gateway-discovery-ambari/src/main/resources/ambari-service-discovery-component-config-mapping.properties
----------------------------------------------------------------------
diff --git 
a/gateway-discovery-ambari/src/main/resources/ambari-service-discovery-component-config-mapping.properties
 
b/gateway-discovery-ambari/src/main/resources/ambari-service-discovery-component-config-mapping.properties
index a48b28c..52d93eb 100644
--- 
a/gateway-discovery-ambari/src/main/resources/ambari-service-discovery-component-config-mapping.properties
+++ 
b/gateway-discovery-ambari/src/main/resources/ambari-service-discovery-component-config-mapping.properties
@@ -33,4 +33,4 @@ DRUID_OVERLORD=druid-overlord
 DRUID_SUPERSET=druid-superset
 ATLAS_SERVER=application-properties
 ZEPPELIN_MASTER=zeppelin-config
-#RANGER=TODO
+RANGER_ADMIN=ranger-admin-site

http://git-wip-us.apache.org/repos/asf/knox/blob/b751c72e/gateway-discovery-ambari/src/main/resources/ambari-service-discovery-url-mappings.xml
----------------------------------------------------------------------
diff --git 
a/gateway-discovery-ambari/src/main/resources/ambari-service-discovery-url-mappings.xml
 
b/gateway-discovery-ambari/src/main/resources/ambari-service-discovery-url-mappings.xml
index 23fbf9c..044fc45 100644
--- 
a/gateway-discovery-ambari/src/main/resources/ambari-service-discovery-url-mappings.xml
+++ 
b/gateway-discovery-ambari/src/main/resources/ambari-service-discovery-url-mappings.xml
@@ -385,16 +385,38 @@
         </properties>
     </service>
 
-
-<!-- TODO:
-    <service name="YARNUI">
-    </service>
-
     <service name="RANGER">
+        <url-pattern>http://{HOST}:{PORT}</url-pattern>
+        <properties>
+            <property name="HOST">
+                <component>RANGER_ADMIN</component>
+                <hostname/>
+            </property>
+            <property name="PORT">
+                <component>RANGER_ADMIN</component>
+                <config-property>ranger.service.http.port</config-property>
+            </property>
+        </properties>
     </service>
 
     <service name="RANGERUI">
+        <url-pattern>http://{HOST}:{PORT}</url-pattern>
+        <properties>
+            <property name="HOST">
+                <component>RANGER_ADMIN</component>
+                <hostname/>
+            </property>
+            <property name="PORT">
+                <component>RANGER_ADMIN</component>
+                <config-property>ranger.service.http.port</config-property>
+            </property>
+        </properties>
+    </service>
+
+<!-- TODO:
+    <service name="YARNUI">
     </service>
+
 -->
 
 </service-discovery-url-mappings>

Reply via email to