12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166 |
- <?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>
- <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.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>
|