1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171 |
- <?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>2.0.0-SNAPSHOT</version>
- </parent>
- <modelVersion>4.0.0</modelVersion>
- <artifactId>ambari-metrics-assembly</artifactId>
- <name>Ambari Metrics Assembly</name>
- <packaging>pom</packaging>
- <version>2.0.0-SNAPSHOT</version>
- <description>Ambari Metrics</description>
- <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>
- <kafka-sink.dir>${project.basedir}/../ambari-metrics-kafka-sink</kafka-sink.dir>
- <python.ver>python >= 2.6</python.ver>
- <python.devel>python-devel</python.devel>
- <deb.publisher>Apache</deb.publisher>
- <deb.section>universe/admin</deb.section>
- <deb.architecture>i386 amd64</deb.architecture>
- <deb.priority>extra</deb.priority>
- <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>
- <kafka.sink.jar>ambari-metrics-kafka-sink-with-common-${project.version}.jar</kafka.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>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-antrun-plugin</artifactId>
- <version>1.7</version>
- <executions>
- <execution>
- <id>download-hadoop</id>
- <phase>generate-resources</phase>
- <goals>
- <goal>run</goal>
- </goals>
- <configuration>
- <target name="Downloading Hadoop">
- <mkdir dir="${project.build.directory}/embedded" />
- <get
- src="${hadoop.tar}"
- dest="${project.build.directory}/embedded/hadoop.tar.gz"
- usetimestamp="true"
- />
- <untar
- src="${project.build.directory}/embedded/hadoop.tar.gz"
- dest="${project.build.directory}/embedded"
- compression="gzip"
- />
- <!-- Resolving symlinks-->
- <move todir="${project.build.directory}/embedded/${hadoop.folder}/lib/native/">
- <fileset dir="${project.build.directory}/embedded/${hadoop.folder}/lib/native/"/>
- <mapper type="regexp" from="libsnappy.so.1.1.*" to="libsnappy.so.1"/>
- </move>
- <move
- file="${project.build.directory}/embedded/${hadoop.folder}/lib/native/libhdfs.so.0.0.0"
- tofile="${project.build.directory}/embedded/${hadoop.folder}/lib/native/libhdfs.so"
- />
- <move
- file="${project.build.directory}/embedded/${hadoop.folder}/lib/native/libhadoop.so.1.0.0"
- tofile="${project.build.directory}/embedded/${hadoop.folder}/lib/native/libhadoop.so"
- />
- <delete file="${project.build.directory}/embedded/${hadoop.folder}/lib/native/libsnappy.so"/>
- </target>
- </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>/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/lib/ams-hbase/lib/hadoop-native/</directory>
- <sources>
- <source>
- <location>${project.build.directory}/ambari-metrics-collector-${project.version}/ambari-metrics-collector-${project.version}/hbase/lib/hadoop-native</location>
- </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/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>
- <mapping>
- <directory>/usr/lib/ambari-metrics-kafka-sink</directory>
- <sources>
- <source>
- <location>${kafka-sink.dir}/target/${kafka.sink.jar}</location>
- </source>
- </sources>
- </mapping>
- <mapping>
- <directory>/usr/lib/ambari-metrics-kafka-sink/lib</directory>
- <sources>
- <source>
- <location>${kafka-sink.dir}/target/lib</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>/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/ams-hbase</path>
- <path>/var/lib/ambari-metrics-collector</path>
- <path>/usr/lib/ambari-metrics-hadoop-sink</path>
- <path>/usr/lib/ambari-metrics-kafka-sink</path>
- <path>/usr/lib/ambari-metrics-kafka-sink/lib</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>${project.build.directory}/ambari-metrics-collector-${project.version}/ambari-metrics-collector-${project.version}/hbase/lib/hadoop-native</src>
- <type>directory</type>
- <mapper>
- <type>perm</type>
- <filemode>755</filemode>
- <prefix>/usr/lib/ams-hbase/lib/hadoop-native</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>
- <!-- kafka sink -->
- <data>
- <src>${kafka-sink.dir}/target/${kafka.sink.jar}</src>
- <type>file</type>
- <mapper>
- <type>perm</type>
- <filemode>644</filemode>
- <dirmode>755</dirmode>
- <prefix>/usr/lib/ambari-metrics-kafka-sink</prefix>
- </mapper>
- </data>
- <data>
- <src>${kafka-sink.dir}/target/lib</src>
- <type>directory</type>
- <mapper>
- <type>perm</type>
- <filemode>644</filemode>
- <dirmode>755</dirmode>
- <prefix>/usr/lib/ambari-metrics-kafka-sink/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-kafka-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>
|