[ 
https://issues.apache.org/jira/browse/KNOX-1236?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16432301#comment-16432301
 ] 

Phil Zampino commented on KNOX-1236:
------------------------------------

Without the HA support, discovered HA-configured YARN endpoints won't work 
sometimes.

> Support service discovery for YARNUIV2
> --------------------------------------
>
>                 Key: KNOX-1236
>                 URL: https://issues.apache.org/jira/browse/KNOX-1236
>             Project: Apache Knox
>          Issue Type: Bug
>          Components: Server
>    Affects Versions: 1.1.0
>            Reporter: Phil Zampino
>            Assignee: Phil Zampino
>            Priority: Major
>             Fix For: 1.1.0
>
>
> Add support for discovering service URLs for topology generation involving 
> the new YARNUIV2 service.
> Add the following to 
> gateway-discovery-ambari/src/main/resources/*ambari-service-discovery-url-mappings.xml*
> {noformat}
>     <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>
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to