| <?xml version="1.0"?> |
| <!-- |
| 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. |
| --> |
| <metainfo> |
| <schemaVersion>2.0</schemaVersion> |
| <application> |
| <name>HBASE</name> |
| <comment> |
| Apache HBase is the Hadoop database, a distributed, scalable, big data store. |
| Requirements: |
| 1. Ensure parent dir for path (hbase-site/hbase.rootdir) is accessible to the App owner. |
| 2. Ensure ZK root (hbase-site/zookeeper.znode.parent) is unique for the App instance. |
| </comment> |
| <version>${pkg.version}</version> |
| <type>YARN-APP</type> |
| <minHadoopVersion>2.1.0</minHadoopVersion> |
| <exportedConfigs>hbase-site</exportedConfigs> |
| <exportGroups> |
| <exportGroup> |
| <name>QuickLinks</name> |
| <exports> |
| <export> |
| <name>org.apache.slider.jmx</name> |
| <value>http://${HBASE_MASTER_HOST}:${site.hbase-site.hbase.master.info.port}/jmx</value> |
| </export> |
| <export> |
| <name>org.apache.slider.monitor</name> |
| <value>http://${HBASE_MASTER_HOST}:${site.hbase-site.hbase.master.info.port}/master-status</value> |
| </export> |
| <export> |
| <name>org.apache.slider.hbase.rest</name> |
| <value>http://${HBASE_REST_HOST}:${site.global.hbase_rest_port}</value> |
| </export> |
| <export> |
| <name>org.apache.slider.hbase.thrift2</name> |
| <value>http://${HBASE_THRIFT2_HOST}:${site.global.hbase_thrift2_port}</value> |
| </export> |
| <export> |
| <name>org.apache.slider.hbase.thrift</name> |
| <value>http://${HBASE_THRIFT_HOST}:${site.global.hbase_thrift_port}</value> |
| </export> |
| </exports> |
| </exportGroup> |
| </exportGroups> |
| <commandOrders> |
| <commandOrder> |
| <command>HBASE_REGIONSERVER-START</command> |
| <requires>HBASE_MASTER-STARTED</requires> |
| </commandOrder> |
| <commandOrder> |
| <command>HBASE_MASTER-START</command> |
| <requires>HBASE_REST-INSTALLED</requires> |
| </commandOrder> |
| </commandOrders> |
| <components> |
| <component> |
| <name>HBASE_MASTER</name> |
| <category>MASTER</category> |
| <minInstanceCount>1</minInstanceCount> |
| <appExports>QuickLinks-org.apache.slider.jmx,QuickLinks-org.apache.slider.monitor</appExports> |
| <componentExports> |
| <componentExport> |
| <name>org.apache.slider.jmx</name> |
| <value>${THIS_HOST}:${site.hbase-site.hbase.master.info.port}/jmx</value> |
| </componentExport> |
| <componentExport> |
| <name>org.apache.slider.monitor</name> |
| <value>${THIS_HOST}:${site.hbase-site.hbase.master.info.port}/master-status</value> |
| </componentExport> |
| </componentExports> |
| <commandScript> |
| <script>scripts/hbase_master.py</script> |
| <scriptType>PYTHON</scriptType> |
| <timeout>600</timeout> |
| </commandScript> |
| </component> |
| |
| <component> |
| <name>HBASE_REGIONSERVER</name> |
| <category>SLAVE</category> |
| <minInstanceCount>0</minInstanceCount> |
| <commandScript> |
| <script>scripts/hbase_regionserver.py</script> |
| <scriptType>PYTHON</scriptType> |
| </commandScript> |
| </component> |
| |
| <component> |
| <name>HBASE_REST</name> |
| <category>MASTER</category> |
| <appExports>QuickLinks-org.apache.slider.hbase.rest</appExports> |
| <commandScript> |
| <script>scripts/hbase_rest.py</script> |
| <scriptType>PYTHON</scriptType> |
| </commandScript> |
| </component> |
| |
| <component> |
| <name>HBASE_THRIFT</name> |
| <category>MASTER</category> |
| <appExports>QuickLinks-org.apache.slider.hbase.thrift</appExports> |
| <commandScript> |
| <script>scripts/hbase_thrift.py</script> |
| <scriptType>PYTHON</scriptType> |
| </commandScript> |
| </component> |
| |
| <component> |
| <name>HBASE_THRIFT2</name> |
| <category>MASTER</category> |
| <minInstanceCount>0</minInstanceCount> |
| <appExports>QuickLinks-org.apache.slider.hbase.thrift2</appExports> |
| <commandScript> |
| <script>scripts/hbase_thrift2.py</script> |
| <scriptType>PYTHON</scriptType> |
| </commandScript> |
| </component> |
| </components> |
| |
| <osSpecifics> |
| <osSpecific> |
| <osType>any</osType> |
| <packages> |
| <package> |
| <type>zip</type> |
| <name>files/${pkg.name}</name> |
| </package> |
| </packages> |
| </osSpecific> |
| </osSpecifics> |
| |
| <configFiles> |
| <configFile> |
| <type>xml</type> |
| <fileName>hbase-site.xml</fileName> |
| <dictionaryName>hbase-site</dictionaryName> |
| </configFile> |
| <configFile> |
| <type>env</type> |
| <fileName>hbase-env.sh</fileName> |
| <dictionaryName>hbase-env</dictionaryName> |
| </configFile> |
| <configFile> |
| <type>env</type> |
| <fileName>hbase-log4j.properties</fileName> |
| <dictionaryName>hbase-log4j</dictionaryName> |
| </configFile> |
| <configFile> |
| <type>env</type> |
| <fileName>hbase-policy.xml</fileName> |
| <dictionaryName>hbase-policy</dictionaryName> |
| </configFile> |
| </configFiles> |
| |
| </application> |
| </metainfo> |