| <?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.rest_port}</value> |
| </export> |
| <export> |
| <name>org.apache.slider.hbase.thrift2</name> |
| <value>http://${HBASE_THRIFT2_HOST}:${site.global.thrift2_port}</value> |
| </export> |
| <export> |
| <name>org.apache.slider.hbase.thrift</name> |
| <value>http://${HBASE_THRIFT_HOST}:${site.global.thrift_port}</value> |
| </export> |
| <export> |
| <name>org.apache.slider.metrics</name> |
| <value>http://${site.hbase-metrics2.metric_collector_host}:${site.hbase-metrics2.metric_collector_port}/ws/v1/timeline/metrics</value> |
| </export> |
| <export> |
| <name>org.apache.slider.hbase.zk-path</name> |
| <value>${site.hbase-site.hbase.zookeeper.quorum}:${site.hbase-site.zookeeper.znode.parent}</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> |
| <requires>HBASE_THRIFT-INSTALLED</requires> |
| <requires>HBASE_THRIFT2-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,QuickLinks-org.apache.slider.metrics,QuickLinks-org.apache.slider.hbase.zk-path</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> |
| <componentExport> |
| <name>org.apache.slider.hbase.zk-path</name> |
| <value>${site.hbase-site.hbase.zookeeper.quorum}:${site.hbase-site.zookeeper.znode.parent}</value> |
| </componentExport> |
| </componentExports> |
| <commands> |
| <command> |
| <exec>{$conf:@//site/global/daemon_cmd} start master</exec> |
| </command> |
| <command> |
| <exec>{$conf:@//site/global/daemon_cmd} stop master</exec> |
| <name>STOP</name> |
| </command> |
| </commands> |
| <configFile> |
| <type>template</type> |
| <fileName>app/conf/hbase_master_jaas.conf</fileName> |
| <dictionaryName>hbase-jaas</dictionaryName> |
| </configFile> |
| </component> |
| |
| <component> |
| <name>HBASE_REGIONSERVER</name> |
| <category>SLAVE</category> |
| <minInstanceCount>1</minInstanceCount> |
| <commands> |
| <command> |
| <exec>{$conf:@//site/global/daemon_cmd} start regionserver</exec> |
| </command> |
| <command> |
| <exec>{$conf:@//site/global/daemon_cmd} stop regionserver</exec> |
| <name>STOP</name> |
| </command> |
| </commands> |
| <configFile> |
| <type>template</type> |
| <fileName>app/conf/hbase_regionserver_jaas.conf</fileName> |
| <dictionaryName>hbase-jaas</dictionaryName> |
| </configFile> |
| </component> |
| |
| <component> |
| <name>HBASE_REST</name> |
| <category>MASTER</category> |
| <appExports>QuickLinks-org.apache.slider.hbase.rest</appExports> |
| <commands> |
| <command> |
| <exec>{$conf:@//site/global/daemon_cmd} start rest -p {$conf:@//site/global/rest_port}</exec> |
| </command> |
| <command> |
| <exec>{$conf:@//site/global/daemon_cmd} stop rest</exec> |
| <name>STOP</name> |
| </command> |
| </commands> |
| <configFile> |
| <type>template</type> |
| <fileName>app/conf/hbase_rest_jaas.conf</fileName> |
| <dictionaryName>hbase-jaas</dictionaryName> |
| </configFile> |
| </component> |
| |
| <component> |
| <name>HBASE_THRIFT</name> |
| <category>MASTER</category> |
| <appExports>QuickLinks-org.apache.slider.hbase.thrift</appExports> |
| <commands> |
| <command> |
| <exec>{$conf:@//site/global/daemon_cmd} start thrift -p {$conf:@//site/global/thrift_port}</exec> |
| </command> |
| <command> |
| <exec>{$conf:@//site/global/daemon_cmd} stop thrift</exec> |
| <name>STOP</name> |
| </command> |
| </commands> |
| <configFile> |
| <type>template</type> |
| <fileName>app/conf/hbase_thrift2_jaas.conf</fileName> |
| <dictionaryName>hbase-jaas</dictionaryName> |
| </configFile> |
| </component> |
| |
| <component> |
| <name>HBASE_THRIFT2</name> |
| <category>MASTER</category> |
| <minInstanceCount>0</minInstanceCount> |
| <appExports>QuickLinks-org.apache.slider.hbase.thrift2</appExports> |
| <commands> |
| <command> |
| <exec>{$conf:@//site/global/daemon_cmd} start thrift2 -p {$conf:@//site/global/thrift_port}</exec> |
| </command> |
| <command> |
| <exec>{$conf:@//site/global/daemon_cmd} stop thrift2</exec> |
| <name>STOP</name> |
| </command> |
| </commands> |
| <configFile> |
| <type>template</type> |
| <fileName>app/conf/hbase_thrift_jaas.conf</fileName> |
| <dictionaryName>hbase-jaas</dictionaryName> |
| </configFile> |
| </component> |
| |
| <component> |
| <name>HBASE_CLIENT</name> |
| <category>CLIENT</category> |
| <configFile> |
| <type>template</type> |
| <fileName>app/conf/hbase_client_jaas.conf</fileName> |
| <dictionaryName>hbase-jaas</dictionaryName> |
| </configFile> |
| </component> |
| </components> |
| |
| <osSpecifics> |
| <osSpecific> |
| <osType>any</osType> |
| <packages> |
| <package> |
| <type>tarball</type> |
| <name>files/hbase-${pkg.version}.tar.gz</name> |
| </package> |
| </packages> |
| </osSpecific> |
| </osSpecifics> |
| |
| <packages> |
| <package> |
| <type>tarball</type> |
| <name>hbase-${pkg.version}-bin.tar.gz</name> |
| </package> |
| </packages> |
| |
| <configFiles> |
| <configFile> |
| <type>xml</type> |
| <fileName>app/conf/hbase-site.xml</fileName> |
| <dictionaryName>hbase-site</dictionaryName> |
| </configFile> |
| <configFile> |
| <type>template</type> |
| <fileName>app/conf/hbase-env.sh</fileName> |
| <dictionaryName>hbase-env</dictionaryName> |
| </configFile> |
| <configFile> |
| <type>template</type> |
| <fileName>app/conf/log4j.properties</fileName> |
| <dictionaryName>hbase-log4j</dictionaryName> |
| </configFile> |
| <configFile> |
| <type>xml</type> |
| <fileName>app/conf/hbase-policy.xml</fileName> |
| <dictionaryName>hbase-policy</dictionaryName> |
| </configFile> |
| <configFile> |
| <type>template</type> |
| <fileName>app/conf/hadoop-metrics2-hbase.properties</fileName> |
| <dictionaryName>hbase-metrics2</dictionaryName> |
| </configFile> |
| </configFiles> |
| |
| </application> |
| </metainfo> |