Repository: knox
Updated Branches:
  refs/heads/master bf3fc5eb0 -> c06cebd7e


http://git-wip-us.apache.org/repos/asf/knox/blob/c06cebd7/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 a3e1def..9ba3d62 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
@@ -475,6 +475,74 @@
         </properties>
     </service>
 
+    <service name="YARNUI">
+        <url-pattern>{SCHEME}://{YARN_RM_WEBAPP_ADDRESS}</url-pattern>
+        <properties>
+            <property name="HTTP_ADDRESS">
+                <component>RESOURCEMANAGER</component>
+                
<config-property>yarn.resourcemanager.webapp.address</config-property>
+            </property>
+            <property name="HTTPS_ADDRESS">
+                <component>RESOURCEMANAGER</component>
+                
<config-property>yarn.resourcemanager.webapp.https.address</config-property>
+            </property>
+            <property name="HTTP_POLICY">
+                <component>RESOURCEMANAGER</component>
+                <config-property>yarn.http.policy</config-property>
+            </property>
+            <property name="SCHEME">
+                <config-property>
+                    <if property="HTTP_POLICY" value="HTTPS_ONLY">
+                        <then>https</then>
+                        <else>http</else>
+                    </if>
+                </config-property>
+            </property>
+            <property name="YARN_RM_WEBAPP_ADDRESS">
+                <config-property>
+                    <if property="HTTP_POLICY" value="HTTPS_ONLY">
+                        <then>HTTPS_ADDRESS</then>
+                        <else>HTTP_ADDRESS</else>
+                    </if>
+                </config-property>
+            </property>
+        </properties>
+    </service>
+
+    <service name="YARNUIV2">
+        <url-pattern>{SCHEME}://{YARN_RM_WEBAPP_ADDRESS}</url-pattern>
+        <properties>
+            <property name="HTTP_ADDRESS">
+                <component>RESOURCEMANAGER</component>
+                
<config-property>yarn.resourcemanager.webapp.address</config-property>
+            </property>
+            <property name="HTTPS_ADDRESS">
+                <component>RESOURCEMANAGER</component>
+                
<config-property>yarn.resourcemanager.webapp.https.address</config-property>
+            </property>
+            <property name="HTTP_POLICY">
+                <component>RESOURCEMANAGER</component>
+                <config-property>yarn.http.policy</config-property>
+            </property>
+            <property name="SCHEME">
+                <config-property>
+                    <if property="HTTP_POLICY" value="HTTPS_ONLY">
+                        <then>https</then>
+                        <else>http</else>
+                    </if>
+                </config-property>
+            </property>
+            <property name="YARN_RM_WEBAPP_ADDRESS">
+                <config-property>
+                    <if property="HTTP_POLICY" value="HTTPS_ONLY">
+                        <then>HTTPS_ADDRESS</then>
+                        <else>HTTP_ADDRESS</else>
+                    </if>
+                </config-property>
+            </property>
+        </properties>
+    </service>
+
     <service name="JOBHISTORYUI">
         <url-pattern>{JOBHISTORY_WEBAPP_ADDRESS}</url-pattern>
         <properties>

Reply via email to