123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074 |
- <?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.
- -->
- <project xmlns="http://maven.apache.org/POM/4.0.0"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <parent>
- <artifactId>ambari-metrics</artifactId>
- <groupId>org.apache.ambari</groupId>
- <version>0.1.0-SNAPSHOT</version>
- </parent>
- <modelVersion>4.0.0</modelVersion>
- <artifactId>ambari-metrics-assembly</artifactId>
- <packaging>pom</packaging>
- <version>0.1.0-SNAPSHOT</version>
- <properties>
- <collector.dir>${project.basedir}/../ambari-metrics-timelineservice</collector.dir>
- <monitor.dir>${project.basedir}/../ambari-metrics-host-monitoring</monitor.dir>
- <hadoop-sink.dir>${project.basedir}/../ambari-metrics-hadoop-sink</hadoop-sink.dir>
- <storm-sink.dir>${project.basedir}/../ambari-metrics-storm-sink</storm-sink.dir>
- <flume-sink.dir>${project.basedir}/../ambari-metrics-flume-sink</flume-sink.dir>
- <python.ver>python >= 2.6</python.ver>
- <deb.python.ver>python (>= 2.6)</deb.python.ver>
- <deb.architecture>amd64</deb.architecture>
- <deb.dependency.list>${deb.python.ver},python-dev,gcc</deb.dependency.list>
- <hadoop.sink.jar>ambari-metrics-hadoop-sink-with-common-${project.version}.jar</hadoop.sink.jar>
- <storm.sink.jar>ambari-metrics-storm-sink-with-common-${project.version}.jar</storm.sink.jar>
- <flume.sink.jar>ambari-metrics-flume-sink-with-common-${project.version}.jar</flume.sink.jar>
- </properties>
- <build>
- <plugins>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>build-helper-maven-plugin</artifactId>
- <version>1.8</version>
- <executions>
- <execution>
- <id>parse-version</id>
- <phase>validate</phase>
- <goals>
- <goal>parse-version</goal>
- </goals>
- </execution>
- <execution>
- <id>regex-property</id>
- <goals>
- <goal>regex-property</goal>
- </goals>
- <configuration>
- <name>ambariVersion</name>
- <value>${project.version}</value>
- <regex>^([0-9]+)\.([0-9]+)\.([0-9]+)(\.|-).*</regex>
- <replacement>$1.$2.$3</replacement>
- <failIfNoMatch>false</failIfNoMatch>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <artifactId>maven-assembly-plugin</artifactId>
- <executions>
- <execution>
- <id>collector</id>
- <phase>package</phase>
- <goals>
- <goal>single</goal>
- </goals>
- <configuration>
- <attach>false</attach>
- <finalName>ambari-metrics-collector-${project.version}</finalName>
- <appendAssemblyId>false</appendAssemblyId>
- <descriptors>
- <descriptor>${assemblydescriptor.collector}</descriptor>
- </descriptors>
- <tarLongFileMode>gnu</tarLongFileMode>
- </configuration>
- </execution>
- <execution>
- <id>monitor</id>
- <phase>package</phase>
- <goals>
- <goal>single</goal>
- </goals>
- <configuration>
- <attach>false</attach>
- <finalName>ambari-metrics-monitor-${project.version}</finalName>
- <appendAssemblyId>false</appendAssemblyId>
- <descriptors>
- <descriptor>${assemblydescriptor.monitor}</descriptor>
- </descriptors>
- <tarLongFileMode>gnu</tarLongFileMode>
- </configuration>
- </execution>
- <execution>
- <id>hadoop-sink</id>
- <phase>package</phase>
- <goals>
- <goal>single</goal>
- </goals>
- <configuration>
- <attach>false</attach>
- <finalName>ambari-metrics-hadoop-sink-${project.version}</finalName>
- <appendAssemblyId>false</appendAssemblyId>
- <descriptors>
- <descriptor>${assemblydescriptor.sink}</descriptor>
- </descriptors>
- <tarLongFileMode>gnu</tarLongFileMode>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- <profiles>
- <profile>
- <id>rpm</id>
- <activation>
- <property>
- <name>build-rpm</name>
- </property>
- </activation>
- <build>
- <plugins>
- <plugin>
- <artifactId>maven-resources-plugin</artifactId>
- <version>2.7</version>
- <executions>
- <execution>
- <id>copy-resources</id>
- <phase>prepare-package</phase>
- <goals>
- <goal>copy-resources</goal>
- </goals>
- <configuration>
- <outputDirectory>${project.build.directory}/resources/rpm</outputDirectory>
- <resources>
- <resource>
- <directory>${project.basedir}/src/main/package/rpm</directory>
- <filtering>true</filtering>
- </resource>
- </resources>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>rpm-maven-plugin</artifactId>
- <version>2.0.1</version>
- <configuration>
- <group>Development</group>
- <needarch>x86_64</needarch>
- <copyright>2012, Apache Software Foundation</copyright>
- <version>${package-version}</version>
- <release>${package-release}</release>
- <defaultFilemode>644</defaultFilemode>
- <defaultDirmode>755</defaultDirmode>
- <defaultUsername>root</defaultUsername>
- <defaultGroupname>root</defaultGroupname>
- </configuration>
- <executions>
- <!--ambari-metrics-monitor-->
- <execution>
- <id>ambari-metrics-monitor</id>
- <!-- unbinds rpm creation from maven lifecycle -->
- <phase>package</phase>
- <goals>
- <goal>rpm</goal>
- </goals>
- <configuration>
- <name>ambari-metrics-monitor</name>
- <group>Development</group>
- <needarch>x86_64</needarch>
- <autoRequires>false</autoRequires>
- <requires>
- <require>${python.ver}</require>
- <require>gcc</require>
- <require>python-devel</require>
- </requires>
- <preremoveScriptlet>
- <scriptFile>src/main/package/rpm/preremove.sh</scriptFile>
- <fileEncoding>utf-8</fileEncoding>
- </preremoveScriptlet>
- <mappings>
- <mapping>
- <directory>${resmonitor.install.dir}</directory>
- <username>root</username>
- <groupname>root</groupname>
- <sources>
- <source>
- <location>
- ${monitor.dir}/src/main/python/__init__.py
- </location>
- </source>
- <source>
- <location>
- ${monitor.dir}/src/main/python/main.py
- </location>
- </source>
- </sources>
- </mapping>
- <mapping>
- <directory>${resmonitor.install.dir}/core</directory>
- <sources>
- <source>
- <location>
- ${monitor.dir}/src/main/python/core
- </location>
- </source>
- </sources>
- </mapping>
- <mapping>
- <directory>${resmonitor.install.dir}/psutil</directory>
- <sources>
- <source>
- <location>
- ${monitor.dir}/src/main/python/psutil
- </location>
- <excludes>
- <exclude>build/**</exclude>
- <exclude>build/*</exclude>
- </excludes>
- </source>
- </sources>
- </mapping>
- <mapping>
- <directory>${resmonitor.install.dir}/ambari_commons</directory>
- <sources>
- <source>
- <location>
- ${project.basedir}/../../ambari-common/src/main/python/ambari_commons
- </location>
- </source>
- </sources>
- </mapping>
- <mapping>
- <directory>/etc/ambari-metrics-monitor/conf</directory>
- <configuration>true</configuration>
- </mapping>
- <mapping>
- <directory>/var/run/ambari-metrics-monitor</directory>
- </mapping>
- <mapping>
- <directory>/var/log/ambari-metrics-monitor</directory>
- </mapping>
- <mapping>
- <directory>/usr/sbin</directory>
- <filemode>755</filemode>
- <username>root</username>
- <groupname>root</groupname>
- <directoryIncluded>false</directoryIncluded>
- <sources>
- <source>
- <location>
- ${monitor.dir}/conf/unix/ambari-metrics-monitor
- </location>
- <filter>true</filter>
- </source>
- </sources>
- </mapping>
- </mappings>
- </configuration>
- </execution>
- <!--ambari-metrics-collector-->
- <execution>
- <id>ambari-metrics-collector</id>
- <phase>package</phase>
- <goals>
- <goal>rpm</goal>
- </goals>
- <configuration>
- <name>ambari-metrics-collector</name>
- <copyright>2012, Apache Software Foundation</copyright>
- <group>Development</group>
- <description>Maven Recipe: RPM Package.</description>
- <autoRequires>false</autoRequires>
- <requires>
- <require>${python.ver}</require>
- </requires>
- <defaultFilemode>644</defaultFilemode>
- <defaultDirmode>755</defaultDirmode>
- <defaultUsername>root</defaultUsername>
- <defaultGroupname>root</defaultGroupname>
- <mappings>
- <mapping>
- <!--jars-->
- <directory>/usr/lib/ambari-metrics-collector/</directory>
- <sources>
- <source>
- <location>${collector.dir}/target/lib</location>
- </source>
- <source>
- <location>
- ${collector.dir}/target/ambari-metrics-timelineservice-${project.version}.jar
- </location>
- </source>
- </sources>
- </mapping>
- <mapping>
- <!--embedded applications-->
- <directory>/usr/lib/ams-hbase/</directory>
- <sources>
- <source>
- <location>${collector.dir}/target/embedded/${hbase.folder}</location>
- <excludes>
- <exclude>bin/**</exclude>
- <exclude>bin/*</exclude>
- </excludes>
- </source>
- </sources>
- </mapping>
- <mapping>
- <directory>/usr/lib/ams-hbase/bin</directory>
- <filemode>755</filemode>
- <sources>
- <source>
- <location>${collector.dir}/target/embedded/${hbase.folder}/bin</location>
- </source>
- </sources>
- </mapping>
- <mapping>
- <directory>/usr/lib/ams-hbase/lib/</directory>
- <sources>
- <source>
- <location>${collector.dir}/target/lib</location>
- <includes>
- <include>phoenix*.jar</include>
- <include>antlr*.jar</include>
- </includes>
- </source>
- </sources>
- </mapping>
- <mapping>
- <directory>/usr/sbin</directory>
- <filemode>755</filemode>
- <username>root</username>
- <groupname>root</groupname>
- <directoryIncluded>false</directoryIncluded>
- <sources>
- <source>
- <location>${collector.dir}/conf/unix/ambari-metrics-collector</location>
- <filter>false</filter>
- </source>
- </sources>
- </mapping>
- <mapping>
- <directory>/etc/ambari-metrics-collector/conf</directory>
- <configuration>true</configuration>
- <sources>
- <source>
- <location>${collector.dir}/conf/unix/ams-env.sh</location>
- </source>
- <source>
- <location>${collector.dir}/conf/unix/ams-site.xml</location>
- </source>
- <source>
- <location>${collector.dir}/conf/unix/log4j.properties</location>
- </source>
- <source>
- <location>${collector.dir}/target/embedded/${hbase.folder}/conf/hbase-site.xml</location>
- </source>
- </sources>
- </mapping>
- <mapping>
- <directory>/etc/ams-hbase/conf</directory>
- <configuration>true</configuration>
- <sources>
- <source>
- <location>${collector.dir}/target/embedded/${hbase.folder}/conf</location>
- <includes>
- <include>*.*</include>
- </includes>
- </source>
- </sources>
- </mapping>
- <mapping>
- <directory>/var/run/ams-hbase</directory>
- </mapping>
- <mapping>
- <directory>/var/run/ambari-metrics-collector</directory>
- </mapping>
- <mapping>
- <directory>/var/log/ambari-metrics-collector</directory>
- </mapping>
- <mapping>
- <directory>/var/lib/ambari-metrics-collector</directory>
- </mapping>
- </mappings>
- </configuration>
- </execution>
- <!--hadoop-sink-->
- <execution>
- <id>ambari-metrics-hadoop-sink</id>
- <phase>package</phase>
- <goals>
- <goal>rpm</goal>
- </goals>
- <configuration>
- <name>ambari-metrics-hadoop-sink</name>
- <copyright>2012, Apache Software Foundation</copyright>
- <group>Development</group>
- <description>Maven Recipe: RPM Package.</description>
- <defaultDirmode>755</defaultDirmode>
- <defaultFilemode>644</defaultFilemode>
- <defaultUsername>root</defaultUsername>
- <defaultGroupname>root</defaultGroupname>
- <postinstallScriptlet>
- <scriptFile>${project.build.directory}/resources/rpm/sink/postinstall.sh</scriptFile>
- <fileEncoding>utf-8</fileEncoding>
- </postinstallScriptlet>
- <mappings>
- <mapping>
- <directory>/usr/lib/ambari-metrics-hadoop-sink</directory>
- <sources>
- <source>
- <location>${hadoop-sink.dir}/target/ambari-metrics-hadoop-sink-with-common-${project.version}.jar</location>
- </source>
- </sources>
- </mapping>
- <mapping>
- <directory>/usr/lib/flume/lib</directory>
- <sources>
- <source>
- <location>${flume-sink.dir}/target/ambari-metrics-flume-sink-with-common-${project.version}.jar</location>
- </source>
- </sources>
- </mapping>
- <mapping>
- <directory>/usr/lib/storm/lib</directory>
- <sources>
- <source>
- <location>${storm-sink.dir}/target/ambari-metrics-storm-sink-with-common-${project.version}.jar</location>
- </source>
- </sources>
- </mapping>
- </mappings>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </profile>
- <profile>
- <id>deb</id>
- <activation>
- <property>
- <name>build-deb</name>
- </property>
- </activation>
- <build>
- <plugins>
- <plugin>
- <artifactId>maven-resources-plugin</artifactId>
- <version>2.7</version>
- <executions>
- <execution>
- <id>copy-resources</id>
- <phase>prepare-package</phase>
- <goals>
- <goal>copy-resources</goal>
- </goals>
- <configuration>
- <outputDirectory>${project.build.directory}/resources/deb/control</outputDirectory>
- <resources>
- <resource>
- <directory>${project.basedir}/src/main/package/deb/control</directory>
- <excludes>
- <exclude>postinst</exclude>
- </excludes>
- <filtering>false</filtering>
- </resource>
- <resource>
- <directory>${project.basedir}/src/main/package/deb/control</directory>
- <includes>
- <include>postinst</include>
- </includes>
- <filtering>true</filtering>
- </resource>
- </resources>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <artifactId>jdeb</artifactId>
- <groupId>org.vafer</groupId>
- <version>1.0.1</version>
- <executions>
- <execution>
- <phase>package</phase>
- <goals>
- <goal>jdeb</goal>
- </goals>
- </execution>
- </executions>
- <configuration>
- <controlDir>${project.build.directory}/resources/deb/control</controlDir>
- <deb>${basedir}/target/${artifactId}_${package-version}-${package-release}.deb</deb>
- <dataSet>
- <data>
- <type>file</type>
- <src>${monitor.dir}/src/main/python/__init__.py</src>
- <mapper>
- <type>perm</type>
- <prefix>${resmonitor.install.dir}</prefix>
- <!-- TODO: Figure out if file perms should be set -->
- <!--user>root</user>
- <group>root</group-->
- <filemode>755</filemode>
- </mapper>
- </data>
- <data>
- <type>file</type>
- <src>${monitor.dir}/src/main/python/main.py</src>
- <mapper>
- <type>perm</type>
- <prefix>${resmonitor.install.dir}</prefix>
- <filemode>755</filemode>
- </mapper>
- </data>
- <data>
- <type>directory</type>
- <src>${monitor.dir}/src/main/python/core</src>
- <mapper>
- <type>perm</type>
- <prefix>${resmonitor.install.dir}/core</prefix>
- </mapper>
- </data>
- <data>
- <type>directory</type>
- <src>${monitor.dir}/src/main/python/psutil</src>
- <excludes>build/**</excludes>
- <mapper>
- <type>perm</type>
- <prefix>${resmonitor.install.dir}/psutil</prefix>
- </mapper>
- </data>
- <data>
- <type>directory</type>
- <src>${project.basedir}/../../ambari-common/src/main/python/ambari_commons</src>
- <mapper>
- <type>perm</type>
- <prefix>${resmonitor.install.dir}/ambari_commons</prefix>
- </mapper>
- </data>
- <data>
- <type>template</type>
- <paths>
- <path>/var/run/ambari-metrics-monitor</path>
- <path>/var/log/ambari-metrics-monitor</path>
- <path>/etc/ambari-metrics-monitor/conf</path>
- <path>/usr/lib/ambari-metrics-collector</path>
- <path>/etc/ambari-metrics-collector/conf</path>
- <path>/etc/ams-hbase/conf</path>
- <path>/var/run/ambari-metrics-collector</path>
- <path>/var/run/ams-hbase</path>
- <path>/var/log/ambari-metrics-collector</path>
- <path>/var/lib/ambari-metrics-collector</path>
- <path>/usr/lib/ambari-metrics-hadoop-sink</path>
- <path>/usr/lib/flume/lib</path>
- <path>/usr/lib/storm/lib</path>
- </paths>
- </data>
- <data>
- <src>${monitor.dir}/conf/unix/metric_groups.conf</src>
- <type>file</type>
- <mapper>
- <type>perm</type>
- <prefix>/etc/ambari-metrics-monitor/conf</prefix>
- <filemode>644</filemode>
- </mapper>
- </data>
- <data>
- <src>${monitor.dir}/conf/unix/metric_monitor.ini</src>
- <type>file</type>
- <mapper>
- <type>perm</type>
- <prefix>/etc/ambari-metrics-monitor/conf</prefix>
- <filemode>644</filemode>
- </mapper>
- </data>
- <data>
- <src>${monitor.dir}/conf/unix/ambari-metrics-monitor</src>
- <type>file</type>
- <mapper>
- <type>perm</type>
- <prefix>/usr/sbin</prefix>
- <filemode>755</filemode>
- </mapper>
- </data>
- <!-- Metric collector -->
- <data>
- <src>${collector.dir}/target/ambari-metrics-timelineservice-${project.version}.jar</src>
- <type>file</type>
- <mapper>
- <type>perm</type>
- <dirmode>644</dirmode>
- <prefix>/usr/lib/ambari-metrics-collector</prefix>
- </mapper>
- </data>
- <data>
- <src>${collector.dir}/target/lib</src>
- <type>directory</type>
- <mapper>
- <type>perm</type>
- <filemode>644</filemode>
- <prefix>/usr/lib/ambari-metrics-collector</prefix>
- </mapper>
- </data>
- <data>
- <src>${collector.dir}/target/embedded/${hbase.folder}</src>
- <type>directory</type>
- <excludes>bin/**,bin/*</excludes>
- <mapper>
- <type>perm</type>
- <prefix>/usr/lib/ams-hbase</prefix>
- <filemode>644</filemode>
- </mapper>
- </data>
- <data>
- <src>${collector.dir}/target/embedded/${hbase.folder}/bin</src>
- <type>directory</type>
- <mapper>
- <type>perm</type>
- <filemode>755</filemode>
- <prefix>/usr/lib/ams-hbase/bin</prefix>
- </mapper>
- </data>
- <data>
- <src>${collector.dir}/target/lib</src>
- <type>directory</type>
- <includes>phoenix*.jar,antlr*.jar</includes>
- <mapper>
- <type>perm</type>
- <filemode>644</filemode>
- <prefix>/usr/lib/ams-hbase/lib</prefix>
- </mapper>
- </data>
- <data>
- <src>${collector.dir}/conf/unix/ambari-metrics-collector</src>
- <type>file</type>
- <mapper>
- <type>perm</type>
- <filemode>755</filemode>
- <prefix>/usr/sbin</prefix>
- </mapper>
- </data>
- <data>
- <src>${collector.dir}/conf/unix/ams-env.sh</src>
- <type>file</type>
- <mapper>
- <type>perm</type>
- <filemode>755</filemode>
- <prefix>/etc/ambari-metrics-collector/conf</prefix>
- </mapper>
- </data>
- <data>
- <src>${collector.dir}/conf/unix/ams-site.xml</src>
- <type>file</type>
- <mapper>
- <type>perm</type>
- <filemode>644</filemode>
- <prefix>/etc/ambari-metrics-collector/conf</prefix>
- </mapper>
- </data>
- <data>
- <src>${collector.dir}/conf/unix/log4j.properties</src>
- <type>file</type>
- <mapper>
- <type>perm</type>
- <filemode>644</filemode>
- <prefix>/etc/ambari-metrics-collector/conf</prefix>
- </mapper>
- </data>
- <data>
- <src>${collector.dir}/target/embedded/${hbase.folder}/conf/hbase-site.xml</src>
- <type>file</type>
- <mapper>
- <type>perm</type>
- <filemode>644</filemode>
- <prefix>/etc/ambari-metrics-collector/conf</prefix>
- </mapper>
- </data>
- <data>
- <type>directory</type>
- <src>${collector.dir}/target/embedded/${hbase.folder}/conf</src>
- <mapper>
- <type>perm</type>
- <dirmode>755</dirmode>
- <filemode>644</filemode>
- <prefix>/etc/ams-hbase/conf</prefix>
- </mapper>
- </data>
- <!-- hadoop sink -->
- <data>
- <src>${hadoop-sink.dir}/target/ambari-metrics-hadoop-sink-with-common-${project.version}.jar</src>
- <type>file</type>
- <mapper>
- <type>perm</type>
- <filemode>644</filemode>
- <dirmode>755</dirmode>
- <prefix>/usr/lib/ambari-metrics-hadoop-sink</prefix>
- </mapper>
- </data>
- <!-- flume sink -->
- <data>
- <src>${flume-sink.dir}/target/${flume.sink.jar}</src>
- <type>file</type>
- <mapper>
- <type>perm</type>
- <filemode>644</filemode>
- <dirmode>755</dirmode>
- <prefix>/usr/lib/flume/lib</prefix>
- </mapper>
- </data>
- <!-- storm sink -->
- <data>
- <src>${storm-sink.dir}/target/${storm.sink.jar}</src>
- <type>file</type>
- <mapper>
- <type>perm</type>
- <filemode>644</filemode>
- <dirmode>755</dirmode>
- <prefix>/usr/lib/storm/lib</prefix>
- </mapper>
- </data>
- </dataSet>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </profile>
- <profile>
- <id>windows</id>
- <activation>
- <os>
- <family>win</family>
- </os>
- </activation>
- <properties>
- <envClassifier>win</envClassifier>
- <dirsep>\</dirsep>
- <pathsep>;</pathsep>
- <executable.python>python</executable.python>
- <executable.shell>cmd</executable.shell>
- <fileextension.shell>cmd</fileextension.shell>
- <fileextension.dot.shell-default>.cmd</fileextension.dot.shell-default>
- <assemblydescriptor.collector>src/main/assembly/collector-windows.xml</assemblydescriptor.collector>
- <assemblydescriptor.monitor>src/main/assembly/monitor-windows.xml</assemblydescriptor.monitor>
- <assemblydescriptor.sink>src/main/assembly/sink-windows.xml</assemblydescriptor.sink>
- <packagingFormat>jar</packagingFormat>
- <python.build.version>2.7</python.build.version>
- </properties>
- </profile>
- <profile>
- <id>linux</id>
- <activation>
- <os>
- <family>unix</family>
- </os>
- </activation>
- <properties>
- <envClassifier>linux</envClassifier>
- <dirsep>/</dirsep>
- <pathsep>:</pathsep>
- <executable.python>${project.basedir}/../ambari-common/src/main/unix/ambari-python-wrap</executable.python>
- <executable.shell>sh</executable.shell>
- <fileextension.shell>sh</fileextension.shell>
- <fileextension.dot.shell-default></fileextension.dot.shell-default>
- <assemblydescriptor.collector>src/main/assembly/collector.xml</assemblydescriptor.collector>
- <assemblydescriptor.monitor>src/main/assembly/monitor.xml</assemblydescriptor.monitor>
- <assemblydescriptor.sink>src/main/assembly/sink.xml</assemblydescriptor.sink>
- <packagingFormat>jar</packagingFormat>
- </properties>
- </profile>
- <profile>
- <id>msi</id>
- <activation>
- <os>
- <family>Windows</family>
- </os>
- </activation>
- <build>
- <plugins>
- <!-- msi creation -->
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>exec-maven-plugin</artifactId>
- <version>1.2</version>
- <executions>
- <execution>
- <id>run-heat-collector</id>
- <phase>package</phase>
- <goals>
- <goal>exec</goal>
- </goals>
- <configuration>
- <executable>heat.exe</executable>
- <arguments>
- <argument>dir</argument>
- <argument>"."</argument>
- <argument>-dr</argument>
- <argument>"COLLECTOR_INSTALL_DIRECTORY"</argument>
- <argument>-platform</argument>
- <argument>Win64</argument>
- <argument>-cg</argument>
- <argument>"AmbariMetricsCollectorGroup"</argument>
- <argument>-gg</argument>
- <argument>-ke</argument>
- <argument>-srd</argument>
- <argument>-o</argument>
- <argument>".\..\collector-files.wxs"</argument>
- </arguments>
- <workingDirectory>${basedir}/target/ambari-metrics-collector-${project.version}</workingDirectory>
- </configuration>
- </execution>
- <execution>
- <id>run-candle-collector</id>
- <phase>package</phase>
- <goals>
- <goal>exec</goal>
- </goals>
- <configuration>
- <executable>candle.exe</executable>
- <arguments>
- <argument>-arch</argument>
- <argument>x64</argument>
- <argument>collector.wxs</argument>
- <argument>collector-files.wxs</argument>
- </arguments>
- <workingDirectory>${basedir}/target</workingDirectory>
- </configuration>
- </execution>
- <execution>
- <id>run-light-collector</id>
- <phase>package</phase>
- <goals>
- <goal>exec</goal>
- </goals>
- <configuration>
- <executable>light.exe</executable>
- <arguments>
- <argument>-ext</argument>
- <argument>WixUIExtension</argument>
- <argument>-b</argument>
- <argument>${basedir}/target/ambari-metrics-collector-${project.version}</argument>
- <argument>-o</argument>
- <argument>ambari-metrics-collector-${project.version}.msi</argument>
- <argument>collector.wixobj</argument>
- <argument>collector-files.wixobj</argument>
- </arguments>
- <workingDirectory>${basedir}/target</workingDirectory>
- </configuration>
- </execution>
- <execution>
- <id>run-heat-monitor</id>
- <phase>package</phase>
- <goals>
- <goal>exec</goal>
- </goals>
- <configuration>
- <executable>heat.exe</executable>
- <arguments>
- <argument>dir</argument>
- <argument>"."</argument>
- <argument>-dr</argument>
- <argument>"MONITOR_INSTALL_DIRECTORY"</argument>
- <argument>-platform</argument>
- <argument>Win64</argument>
- <argument>-cg</argument>
- <argument>"AmbariMetricsMonitorGroup"</argument>
- <argument>-gg</argument>
- <argument>-ke</argument>
- <argument>-srd</argument>
- <argument>-o</argument>
- <argument>".\..\monitor-files.wxs"</argument>
- </arguments>
- <workingDirectory>${basedir}/target/ambari-metrics-monitor-${project.version}</workingDirectory>
- </configuration>
- </execution>
- <execution>
- <id>run-candle-monitor</id>
- <phase>package</phase>
- <goals>
- <goal>exec</goal>
- </goals>
- <configuration>
- <executable>candle.exe</executable>
- <arguments>
- <argument>-arch</argument>
- <argument>x64</argument>
- <argument>monitor.wxs</argument>
- <argument>monitor-files.wxs</argument>
- </arguments>
- <workingDirectory>${basedir}/target</workingDirectory>
- </configuration>
- </execution>
- <execution>
- <id>run-light-monitor</id>
- <phase>package</phase>
- <goals>
- <goal>exec</goal>
- </goals>
- <configuration>
- <executable>light.exe</executable>
- <arguments>
- <argument>-ext</argument>
- <argument>WixUIExtension</argument>
- <argument>-b</argument>
- <argument>${basedir}/target/ambari-metrics-monitor-${project.version}</argument>
- <argument>-o</argument>
- <argument>ambari-metrics-monitor-${project.version}.msi</argument>
- <argument>monitor.wixobj</argument>
- <argument>monitor-files.wixobj</argument>
- </arguments>
- <workingDirectory>${basedir}/target</workingDirectory>
- </configuration>
- </execution>
- <execution>
- <id>run-heat-sink</id>
- <phase>package</phase>
- <goals>
- <goal>exec</goal>
- </goals>
- <configuration>
- <executable>heat.exe</executable>
- <arguments>
- <argument>dir</argument>
- <argument>"."</argument>
- <argument>-dr</argument>
- <argument>"SINK_INSTALL_DIRECTORY"</argument>
- <argument>-platform</argument>
- <argument>Win64</argument>
- <argument>-cg</argument>
- <argument>"AmbariMetricsSinkGroup"</argument>
- <argument>-gg</argument>
- <argument>-ke</argument>
- <argument>-srd</argument>
- <argument>-o</argument>
- <argument>".\..\sink-files.wxs"</argument>
- </arguments>
- <workingDirectory>${basedir}/target/ambari-metrics-hadoop-sink-${project.version}</workingDirectory>
- </configuration>
- </execution>
- <execution>
- <id>run-candle-sink</id>
- <phase>package</phase>
- <goals>
- <goal>exec</goal>
- </goals>
- <configuration>
- <executable>candle.exe</executable>
- <arguments>
- <argument>-arch</argument>
- <argument>x64</argument>
- <argument>sink.wxs</argument>
- <argument>sink-files.wxs</argument>
- </arguments>
- <workingDirectory>${basedir}/target</workingDirectory>
- </configuration>
- </execution>
- <execution>
- <id>run-light-sink</id>
- <phase>package</phase>
- <goals>
- <goal>exec</goal>
- </goals>
- <configuration>
- <executable>light.exe</executable>
- <arguments>
- <argument>-ext</argument>
- <argument>WixUIExtension</argument>
- <argument>-b</argument>
- <argument>${basedir}/target/ambari-metrics-hadoop-sink-${project.version}</argument>
- <argument>-o</argument>
- <argument>ambari-metrics-hadoop-sink-${project.version}.msi</argument>
- <argument>sink.wixobj</argument>
- <argument>sink-files.wixobj</argument>
- </arguments>
- <workingDirectory>${basedir}/target</workingDirectory>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
- <dependencies>
- <dependency>
- <groupId>org.apache.ambari</groupId>
- <artifactId>ambari-metrics-timelineservice</artifactId>
- <version>${project.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.ambari</groupId>
- <artifactId>ambari-metrics-common</artifactId>
- <version>${project.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.ambari</groupId>
- <artifactId>ambari-metrics-hadoop-sink</artifactId>
- <version>${project.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.ambari</groupId>
- <artifactId>ambari-metrics-flume-sink</artifactId>
- <version>${project.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.ambari</groupId>
- <artifactId>ambari-metrics-storm-sink</artifactId>
- <version>${project.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.ambari</groupId>
- <artifactId>ambari-metrics-host-monitoring</artifactId>
- <version>${project.version}</version>
- <type>pom</type>
- <optional>true</optional>
- </dependency>
- </dependencies>
- </project>
|