blob: 5609de32f4171bca9330f1a2ddfd6a4b908b6424 [file] [log] [blame]
<?xml version="1.0" encoding="utf-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!-- ==================================================================== -->
<!-- Externalized mapping of Hadoop service URL patterns and the Ambari -->
<!-- ServiceDiscovery model properties. This configuration is used by -->
<!-- the Ambari ServiceDiscovery implementation to construct service -->
<!-- URLs suitable for use in a Knox topology file. -->
<!-- ==================================================================== -->
<service-discovery-url-mappings>
<service name="JOBTRACKER">
<url-pattern>rpc://{YARN_RM_ADDRESS}</url-pattern>
<properties>
<property name="YARN_RM_ADDRESS">
<component>RESOURCEMANAGER</component>
<config-property>yarn.resourcemanager.address</config-property>
</property>
</properties>
</service>
<service name="WEBHCAT">
<url-pattern>http://{HOST}:{PORT}/templeton</url-pattern>
<properties>
<property name="HOST">
<component>WEBHCAT_SERVER</component>
<hostname/>
</property>
<property name="PORT">
<component>WEBHCAT_SERVER</component>
<config-property>templeton.port</config-property>
</property>
</properties>
</service>
<service name="OOZIE">
<url-pattern>{OOZIE_ADDRESS}</url-pattern>
<properties>
<property name="OOZIE_ADDRESS">
<component>OOZIE_SERVER</component>
<config-property>oozie.base.url</config-property>
</property>
</properties>
</service>
<service name="OOZIEUI">
<url-pattern>{OOZIE_URL}</url-pattern>
<properties>
<property name="OOZIE_URL">
<component>OOZIE_SERVER</component>
<config-property>oozie.base.url</config-property>
</property>
</properties>
</service>
<service name="WEBHBASE">
<url-pattern>http://{HOST}:{MASTER_PORT}</url-pattern>
<properties>
<property name="HOST">
<component>HBASE_MASTER</component>
<hostname/>
</property>
<property name="MASTER_PORT">
<component>HBASE_MASTER</component>
<config-property>hbase.master.info.port</config-property>
</property>
</properties>
</service>
<service name="HBASEUI">
<url-pattern>http://{HOST}:{MASTER_PORT}</url-pattern>
<properties>
<property name="HOST">
<component>HBASE_MASTER</component>
<hostname/>
</property>
<property name="MASTER_PORT">
<component>HBASE_MASTER</component>
<config-property>hbase.master.info.port</config-property>
</property>
</properties>
</service>
<service name="HIVE">
<url-pattern>{SCHEME}://{HOST}:{PORT}/{PATH}</url-pattern>
<properties>
<property name="HOST">
<component>HIVE_SERVER</component>
<hostname/>
</property>
<property name="USE_SSL">
<component>HIVE_SERVER</component>
<config-property>hive.server2.use.SSL</config-property>
</property>
<property name="PATH">
<component>HIVE_SERVER</component>
<config-property>hive.server2.thrift.http.path</config-property>
</property>
<property name="PORT">
<component>HIVE_SERVER</component>
<config-property>hive.server2.thrift.http.port</config-property>
</property>
<property name="SCHEME">
<config-property>
<if property="USE_SSL" value="true">
<then>https</then>
<else>http</else>
</if>
</config-property>
</property>
</properties>
</service>
<service name="DRUID-COORDINATOR">
<url-pattern>http://{HOST}:{PORT}</url-pattern>
<properties>
<property name="HOST">
<component>DRUID_COORDINATOR</component>
<hostname/>
</property>
<property name="PORT">
<component>DRUID_COORDINATOR</component>
<config-property>druid.port</config-property>
</property>
</properties>
</service>
<service name="DRUID-COORDINATOR-UI">
<url-pattern>http://{HOST}:{PORT}</url-pattern>
<properties>
<property name="HOST">
<component>DRUID_COORDINATOR</component>
<hostname/>
</property>
<property name="PORT">
<component>DRUID_COORDINATOR</component>
<config-property>druid.port</config-property>
</property>
</properties>
</service>
<service name="DRUID-BROKER">
<url-pattern>http://{HOST}:{PORT}</url-pattern>
<properties>
<property name="HOST">
<component>DRUID_BROKER</component>
<hostname/>
</property>
<property name="PORT">
<component>DRUID_BROKER</component>
<config-property>druid.port</config-property>
</property>
</properties>
</service>
<service name="DRUID-ROUTER">
<url-pattern>http://{HOST}:{PORT}</url-pattern>
<properties>
<property name="HOST">
<component>DRUID_ROUTER</component>
<hostname/>
</property>
<property name="PORT">
<component>DRUID_ROUTER</component>
<config-property>druid.port</config-property>
</property>
</properties>
</service>
<service name="DRUID-OVERLORD">
<url-pattern>http://{HOST}:{PORT}</url-pattern>
<properties>
<property name="HOST">
<component>DRUID_OVERLORD</component>
<hostname/>
</property>
<property name="PORT">
<component>DRUID_OVERLORD</component>
<config-property>druid.port</config-property>
</property>
</properties>
</service>
<service name="DRUID-OVERLORD-UI">
<url-pattern>http://{HOST}:{PORT}</url-pattern>
<properties>
<property name="HOST">
<component>DRUID_OVERLORD</component>
<hostname/>
</property>
<property name="PORT">
<component>DRUID_OVERLORD</component>
<config-property>druid.port</config-property>
</property>
</properties>
</service>
<service name="SUPERSET">
<url-pattern>http://{HOST}:{PORT}</url-pattern>
<properties>
<property name="HOST">
<component>DRUID_SUPERSET</component>
<hostname/>
</property>
<property name="PORT">
<component>DRUID_SUPERSET</component>
<config-property>SUPERSET_WEBSERVER_PORT</config-property>
</property>
</properties>
</service>
<service name="ATLAS-API">
<url-pattern>{REST_ADDRESS}</url-pattern>
<properties>
<property name="REST_ADDRESS">
<component>ATLAS_SERVER</component>
<config-property>atlas.rest.address</config-property>
</property>
</properties>
</service>
<service name="ATLAS">
<url-pattern>{SCHEME}://{HOST}:{PORT}</url-pattern>
<properties>
<property name="HOST">
<component>ATLAS_SERVER</component>
<hostname/>
</property>
<property name="TLS_ENABLED">
<component>ATLAS_SERVER</component>
<config-property>atlas.enableTLS</config-property>
</property>
<property name="HTTP_PORT">
<component>ATLAS_SERVER</component>
<config-property>atlas.server.http.port</config-property>
</property>
<property name="HTTPS_PORT">
<component>ATLAS_SERVER</component>
<config-property>atlas.server.https.port</config-property>
</property>
<property name="PORT">
<config-property>
<if property="TLS_ENABLED" value="true">
<then>HTTPS_PORT</then>
<else>HTTP_PORT</else>
</if>
</config-property>
</property>
<property name="SCHEME">
<config-property>
<if property="TLS_ENABLED" value="true">
<then>https</then>
<else>http</else>
</if>
</config-property>
</property>
</properties>
</service>
<service name="ZEPPELIN">
<url-pattern>{SCHEME}://{HOST}:{PORT}</url-pattern>
<properties>
<property name="HOST">
<component>ZEPPELIN_MASTER</component>
<hostname/>
</property>
<property name="SSL">
<component>ZEPPELIN_MASTER</component>
<config-property>zeppelin.ssl</config-property>
</property>
<property name="SCHEME">
<config-property>
<if property="SSL" value="true">
<then>https</then>
<else>http</else>
</if>
</config-property>
</property>
<property name="HTTPS_PORT">
<component>ZEPPELIN_MASTER</component>
<config-property>zeppelin.server.ssl.port</config-property>
</property>
<property name="HTTP_PORT">
<component>ZEPPELIN_MASTER</component>
<config-property>zeppelin.server.port</config-property>
</property>
<property name="PORT">
<config-property>
<if property="SSL" value="true">
<then>HTTPS_PORT</then>
<else>HTTP_PORT</else>
</if>
</config-property>
</property>
</properties>
</service>
<service name="ZEPPELINUI">
<url-pattern>{SCHEME}://{HOST}:{PORT}</url-pattern>
<properties>
<property name="HOST">
<component>ZEPPELIN_MASTER</component>
<hostname/>
</property>
<property name="SSL">
<component>ZEPPELIN_MASTER</component>
<config-property>zeppelin.ssl</config-property>
</property>
<property name="SCHEME">
<config-property>
<if property="SSL" value="true">
<then>https</then>
<else>http</else>
</if>
</config-property>
</property>
<property name="HTTPS_PORT">
<component>ZEPPELIN_MASTER</component>
<config-property>zeppelin.server.ssl.port</config-property>
</property>
<property name="HTTP_PORT">
<component>ZEPPELIN_MASTER</component>
<config-property>zeppelin.server.port</config-property>
</property>
<property name="PORT">
<config-property>
<if property="SSL" value="true">
<then>HTTPS_PORT</then>
<else>HTTP_PORT</else>
</if>
</config-property>
</property>
</properties>
</service>
<service name="ZEPPELINWS">
<url-pattern>{SCHEME}://{HOST}:{PORT}/ws</url-pattern>
<properties>
<property name="HOST">
<component>ZEPPELIN_MASTER</component>
<hostname/>
</property>
<property name="SSL">
<component>ZEPPELIN_MASTER</component>
<config-property>zeppelin.ssl</config-property>
</property>
<property name="HTTPS_PORT">
<component>ZEPPELIN_MASTER</component>
<config-property>zeppelin.server.ssl.port</config-property>
</property>
<property name="HTTP_PORT">
<component>ZEPPELIN_MASTER</component>
<config-property>zeppelin.server.port</config-property>
</property>
<property name="SCHEME">
<config-property>
<if property="SSL" value="true">
<then>wss</then>
<else>ws</else>
</if>
</config-property>
</property>
<property name="PORT">
<config-property>
<if property="SSL" value="true">
<then>HTTPS_PORT</then>
<else>HTTP_PORT</else>
</if>
</config-property>
</property>
</properties>
</service>
<service name="RANGER">
<url-pattern>{RANGER_EXTERNAL_URL}</url-pattern>
<properties>
<property name="RANGER_EXTERNAL_URL">
<component>RANGER_ADMIN</component>
<config-property>policymgr_external_url</config-property>
</property>
</properties>
</service>
<service name="RANGERUI">
<url-pattern>{RANGER_EXTERNAL_URL}</url-pattern>
<properties>
<property name="RANGER_EXTERNAL_URL">
<component>RANGER_ADMIN</component>
<config-property>policymgr_external_url</config-property>
</property>
</properties>
</service>
<service name="FALCON">
<url-pattern>http://{HOST}:{PORT}</url-pattern>
<properties>
<property name="HOST">
<component>FALCON_SERVER</component>
<hostname/>
</property>
<property name="PORT">
<component>FALCON_SERVER</component>
<config-property>falcon_port</config-property>
</property>
</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>
<property name="JOBHISTORY_WEBAPP_ADDRESS">
<component>HISTORYSERVER</component>
<config-property>mapreduce.jobhistory.webapp.address</config-property>
</property>
</properties>
</service>
<service name="SOLR">
<url-pattern>http://{HOST}:{PORT}</url-pattern>
<properties>
<property name="HOST">
<component>INFRA_SOLR</component>
<hostname/>
</property>
<property name="PORT">
<component>INFRA_SOLR</component>
<config-property>infra_solr_port</config-property>
</property>
</properties>
</service>
<service name="STORM">
<url-pattern>http://{HOST}:{PORT}</url-pattern>
<properties>
<property name="HOST">
<component>STORM_UI_SERVER</component>
<hostname/>
</property>
<property name="PORT">
<component>STORM_UI_SERVER</component>
<config-property>ui.port</config-property>
</property>
</properties>
</service>
<service name="STORM-LOGVIEWER">
<url-pattern>http://{HOST}:{PORT}</url-pattern>
<properties>
<property name="HOST">
<component>STORM_UI_SERVER</component>
<hostname/>
</property>
<property name="PORT">
<component>STORM_UI_SERVER</component>
<config-property>logviewer.port</config-property>
</property>
</properties>
</service>
<service name="LOGSEARCH">
<url-pattern>{SCHEME}://{HOST}:{PORT}</url-pattern>
<properties>
<property name="HOST">
<component>LOGSEARCH_SERVER</component>
<hostname/>
</property>
<property name="SCHEME">
<component>LOGSEARCH_SERVER</component>
<config-property>logsearch.protocol</config-property>
</property>
<property name="HTTP_PORT">
<component>LOGSEARCH_SERVER</component>
<config-property>logsearch.http.port</config-property>
</property>
<property name="HTTPS_PORT">
<component>LOGSEARCH_SERVER</component>
<config-property>logsearch.https.port</config-property>
</property>
<property name="PORT">
<config-property>
<if property="SCHEME" value="https">
<then>HTTPS_PORT</then>
<else>HTTP_PORT</else>
</if>
</config-property>
</property>
</properties>
</service>
<service name="NIFI">
<url-pattern>{SCHEME}://{HOST}:{PORT}</url-pattern>
<properties>
<property name="COMPONENT_HOST">
<component>NIFI_MASTER</component>
<hostname/>
</property>
<property name="HTTP_HOST">
<component>NIFI_MASTER</component>
<config-property>nifi.web.http.host</config-property>
</property>
<property name="HTTPS_HOST">
<component>NIFI_MASTER</component>
<config-property>nifi.web.https.host</config-property>
</property>
<property name="HTTP_PORT">
<component>NIFI_MASTER</component>
<config-property>nifi.web.http.port</config-property>
</property>
<property name="HTTPS_PORT">
<component>NIFI_MASTER</component>
<config-property>nifi.web.https.port</config-property>
</property>
<property name="SCHEME">
<config-property>
<if property="HTTPS_PORT">
<then>https</then>
<else>http</else>
</if>
</config-property>
</property>
<property name="HOST">
<config-property>
<if property="HTTPS_HOST">
<then>HTTPS_HOST</then>
<else>
<if property="HTTP_HOST">
<then>HTTP_HOST</then>
<else>COMPONENT_HOST</else>
</if>
</else>
</if>
</config-property>
</property>
<property name="PORT">
<config-property>
<if property="SCHEME" value="https">
<then>HTTPS_PORT</then>
<else>HTTP_PORT</else>
</if>
</config-property>
</property>
</properties>
</service>
</service-discovery-url-mappings>