123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182 |
- <?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>
- <services>
- <service>
- <name>HAWQ</name>
- <displayName>HAWQ</displayName>
- <comment>Apache HAWQ - Apache Hadoop Native SQL</comment>
- <version>2.0.0</version>
- <components>
- <component>
- <name>HAWQMASTER</name>
- <displayName>HAWQ Master</displayName>
- <category>MASTER</category>
- <cardinality>1</cardinality>
- <timelineAppid>HAWQ</timelineAppid>
- <commandScript>
- <script>scripts/hawqmaster.py</script>
- <scriptType>PYTHON</scriptType>
- <timeout>1200</timeout>
- </commandScript>
- <customCommands>
- <customCommand>
- <name>IMMEDIATE_STOP_HAWQ_SERVICE</name>
- <commandScript>
- <script>scripts/hawqmaster.py</script>
- <scriptType>PYTHON</scriptType>
- <timeout>1200</timeout>
- </commandScript>
- </customCommand>
- <customCommand>
- <name>HAWQ_CLEAR_CACHE</name>
- <commandScript>
- <script>scripts/hawqmaster.py</script>
- <scriptType>PYTHON</scriptType>
- <timeout>1200</timeout>
- </commandScript>
- </customCommand>
- <customCommand>
- <name>RUN_HAWQ_CHECK</name>
- <commandScript>
- <script>scripts/hawqmaster.py</script>
- <scriptType>PYTHON</scriptType>
- <timeout>1200</timeout>
- </commandScript>
- </customCommand>
- </customCommands>
- <dependencies>
- <dependency>
- <name>HDFS/NAMENODE</name>
- <scope>cluster</scope>
- <auto-deploy>
- <enabled>false</enabled>
- </auto-deploy>
- </dependency>
- <dependency>
- <name>HDFS/HDFS_CLIENT</name>
- <scope>host</scope>
- <auto-deploy>
- <enabled>true</enabled>
- </auto-deploy>
- </dependency>
- </dependencies>
- </component>
- <component>
- <name>HAWQSTANDBY</name>
- <displayName>HAWQ Standby Master</displayName>
- <category>MASTER</category>
- <cardinality>0-1</cardinality>
- <timelineAppid>HAWQ</timelineAppid>
- <commandScript>
- <script>scripts/hawqstandby.py</script>
- <scriptType>PYTHON</scriptType>
- <timeout>600</timeout>
- </commandScript>
- <customCommands>
- <customCommand>
- <name>ACTIVATE_HAWQ_STANDBY</name>
- <commandScript>
- <script>scripts/hawqstandby.py</script>
- <scriptType>PYTHON</scriptType>
- <timeout>1200</timeout>
- </commandScript>
- </customCommand>
- <customCommand>
- <name>RESYNC_HAWQ_STANDBY</name>
- <commandScript>
- <script>scripts/hawqstandby.py</script>
- <scriptType>PYTHON</scriptType>
- <timeout>1200</timeout>
- </commandScript>
- </customCommand>
- </customCommands>
- <dependencies>
- <dependency>
- <name>HDFS/HDFS_CLIENT</name>
- <scope>host</scope>
- <auto-deploy>
- <enabled>true</enabled>
- </auto-deploy>
- </dependency>
- </dependencies>
- </component>
- <component>
- <name>HAWQSEGMENT</name>
- <displayName>HAWQ Segment</displayName>
- <category>SLAVE</category>
- <cardinality>1+</cardinality>
- <timelineAppid>HAWQ</timelineAppid>
- <commandScript>
- <script>scripts/hawqsegment.py</script>
- <scriptType>PYTHON</scriptType>
- <timeout>600</timeout>
- </commandScript>
- <customCommands>
- <customCommand>
- <name>IMMEDIATE_STOP_HAWQ_SEGMENT</name>
- <commandScript>
- <script>scripts/hawqsegment.py</script>
- <scriptType>PYTHON</scriptType>
- <timeout>1200</timeout>
- </commandScript>
- </customCommand>
- </customCommands>
- </component>
- </components>
- <requiredServices>
- <service>HDFS</service>
- </requiredServices>
- <osSpecifics>
- <osSpecific>
- <osFamily>any</osFamily>
- <packages>
- <package>
- <name>hawq</name>
- </package>
- </packages>
- </osSpecific>
- </osSpecifics>
- <commandScript>
- <script>scripts/service_check.py</script>
- <scriptType>PYTHON</scriptType>
- <timeout>300</timeout>
- </commandScript>
- <configuration-dependencies>
- <config-type>hawq-env</config-type>
- <config-type>hawq-site</config-type>
- <config-type>hawq-check-env</config-type>
- <config-type>hdfs-client</config-type>
- <config-type>yarn-client</config-type>
- <config-type>hawq-limits-env</config-type>
- <config-type>hawq-sysctl-env</config-type>
- <config-type>ams-ssl-client</config-type>
- </configuration-dependencies>
- </service>
- </services>
- </metainfo>
|