pom.xml 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. ~ Licensed to the Apache Software Foundation (ASF) under one
  4. ~ or more contributor license agreements. See the NOTICE file
  5. ~ distributed with this work for additional information
  6. ~ regarding copyright ownership. The ASF licenses this file
  7. ~ to you under the Apache License, Version 2.0 (the
  8. ~ "License"); you may not use this file except in compliance
  9. ~ with the License. You may obtain a copy of the License at
  10. ~
  11. ~ http://www.apache.org/licenses/LICENSE-2.0
  12. ~
  13. ~ Unless required by applicable law or agreed to in writing, software
  14. ~ distributed under the License is distributed on an "AS IS" BASIS,
  15. ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  16. ~ See the License for the specific language governing permissions and
  17. ~ limitations under the License.
  18. -->
  19. <project xmlns="http://maven.apache.org/POM/4.0.0"
  20. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  21. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  22. <parent>
  23. <artifactId>ambari-metrics</artifactId>
  24. <groupId>org.apache.ambari</groupId>
  25. <version>0.1.0-SNAPSHOT</version>
  26. </parent>
  27. <modelVersion>4.0.0</modelVersion>
  28. <artifactId>ambari-metrics-assembly</artifactId>
  29. <packaging>pom</packaging>
  30. <version>0.1.0-SNAPSHOT</version>
  31. <properties>
  32. <collector.dir>${project.basedir}/../ambari-metrics-timelineservice</collector.dir>
  33. <monitor.dir>${project.basedir}/../ambari-metrics-host-monitoring</monitor.dir>
  34. <hadoop-sink.dir>${project.basedir}/../ambari-metrics-hadoop-sink</hadoop-sink.dir>
  35. <storm-sink.dir>${project.basedir}/../ambari-metrics-storm-sink</storm-sink.dir>
  36. <flume-sink.dir>${project.basedir}/../ambari-metrics-flume-sink</flume-sink.dir>
  37. <python.ver>python &gt;= 2.6</python.ver>
  38. <deb.python.ver>python (&gt;= 2.6)</deb.python.ver>
  39. <deb.architecture>amd64</deb.architecture>
  40. <deb.dependency.list>${deb.python.ver},python-dev,gcc</deb.dependency.list>
  41. <hadoop.sink.jar>ambari-metrics-hadoop-sink-with-common-${project.version}.jar</hadoop.sink.jar>
  42. <storm.sink.jar>ambari-metrics-storm-sink-with-common-${project.version}.jar</storm.sink.jar>
  43. <flume.sink.jar>ambari-metrics-flume-sink-with-common-${project.version}.jar</flume.sink.jar>
  44. </properties>
  45. <build>
  46. <plugins>
  47. <plugin>
  48. <groupId>org.codehaus.mojo</groupId>
  49. <artifactId>build-helper-maven-plugin</artifactId>
  50. <version>1.8</version>
  51. <executions>
  52. <execution>
  53. <id>parse-version</id>
  54. <phase>validate</phase>
  55. <goals>
  56. <goal>parse-version</goal>
  57. </goals>
  58. </execution>
  59. <execution>
  60. <id>regex-property</id>
  61. <goals>
  62. <goal>regex-property</goal>
  63. </goals>
  64. <configuration>
  65. <name>ambariVersion</name>
  66. <value>${project.version}</value>
  67. <regex>^([0-9]+)\.([0-9]+)\.([0-9]+)(\.|-).*</regex>
  68. <replacement>$1.$2.$3</replacement>
  69. <failIfNoMatch>false</failIfNoMatch>
  70. </configuration>
  71. </execution>
  72. </executions>
  73. </plugin>
  74. <plugin>
  75. <artifactId>maven-resources-plugin</artifactId>
  76. <version>2.7</version>
  77. <executions>
  78. <execution>
  79. <id>copy-resources</id>
  80. <phase>prepare-package</phase>
  81. <goals>
  82. <goal>copy-resources</goal>
  83. </goals>
  84. <configuration>
  85. <outputDirectory>${project.build.directory}/deb/control</outputDirectory>
  86. <resources>
  87. <resource>
  88. <directory>${project.basedir}/src/main/package/deb/control</directory>
  89. <excludes>
  90. <exclude>postinst</exclude>
  91. </excludes>
  92. <filtering>false</filtering>
  93. </resource>
  94. <resource>
  95. <directory>${project.basedir}/src/main/package/deb/control</directory>
  96. <includes>
  97. <include>postinst</include>
  98. </includes>
  99. <filtering>true</filtering>
  100. </resource>
  101. </resources>
  102. </configuration>
  103. </execution>
  104. </executions>
  105. </plugin>
  106. <plugin>
  107. <artifactId>maven-assembly-plugin</artifactId>
  108. <executions>
  109. <execution>
  110. <id>collector</id>
  111. <phase>package</phase>
  112. <goals>
  113. <goal>single</goal>
  114. </goals>
  115. <configuration>
  116. <attach>false</attach>
  117. <finalName>ambari-metrics-collector-${project.version}</finalName>
  118. <appendAssemblyId>false</appendAssemblyId>
  119. <descriptors>
  120. <descriptor>${assemblydescriptor.collector}</descriptor>
  121. </descriptors>
  122. <tarLongFileMode>gnu</tarLongFileMode>
  123. </configuration>
  124. </execution>
  125. <execution>
  126. <id>monitor</id>
  127. <phase>package</phase>
  128. <goals>
  129. <goal>single</goal>
  130. </goals>
  131. <configuration>
  132. <attach>false</attach>
  133. <finalName>ambari-metrics-monitor-${project.version}</finalName>
  134. <appendAssemblyId>false</appendAssemblyId>
  135. <descriptors>
  136. <descriptor>${assemblydescriptor.monitor}</descriptor>
  137. </descriptors>
  138. <tarLongFileMode>gnu</tarLongFileMode>
  139. </configuration>
  140. </execution>
  141. <execution>
  142. <id>hadoop-sink</id>
  143. <phase>package</phase>
  144. <goals>
  145. <goal>single</goal>
  146. </goals>
  147. <configuration>
  148. <attach>false</attach>
  149. <finalName>ambari-metrics-hadoop-sink-${project.version}</finalName>
  150. <appendAssemblyId>false</appendAssemblyId>
  151. <descriptors>
  152. <descriptor>${assemblydescriptor.sink}</descriptor>
  153. </descriptors>
  154. <tarLongFileMode>gnu</tarLongFileMode>
  155. </configuration>
  156. </execution>
  157. </executions>
  158. </plugin>
  159. </plugins>
  160. </build>
  161. <profiles>
  162. <profile>
  163. <id>rpm</id>
  164. <activation>
  165. <property>
  166. <name>build-rpm</name>
  167. </property>
  168. </activation>
  169. <build>
  170. <plugins>
  171. <plugin>
  172. <groupId>org.codehaus.mojo</groupId>
  173. <artifactId>rpm-maven-plugin</artifactId>
  174. <version>2.0.1</version>
  175. <configuration>
  176. <group>Development</group>
  177. <needarch>x86_64</needarch>
  178. <copyright>2012, Apache Software Foundation</copyright>
  179. <version>${package-version}</version>
  180. <release>${package-release}</release>
  181. <defaultFilemode>644</defaultFilemode>
  182. <defaultDirmode>755</defaultDirmode>
  183. <defaultUsername>root</defaultUsername>
  184. <defaultGroupname>root</defaultGroupname>
  185. </configuration>
  186. <executions>
  187. <!--ambari-metrics-monitor-->
  188. <execution>
  189. <id>ambari-metrics-monitor</id>
  190. <!-- unbinds rpm creation from maven lifecycle -->
  191. <phase>package</phase>
  192. <goals>
  193. <goal>rpm</goal>
  194. </goals>
  195. <configuration>
  196. <name>ambari-metrics-monitor</name>
  197. <group>Development</group>
  198. <needarch>x86_64</needarch>
  199. <autoRequires>false</autoRequires>
  200. <requires>
  201. <require>${python.ver}</require>
  202. <require>gcc</require>
  203. <require>python-devel</require>
  204. </requires>
  205. <preremoveScriptlet>
  206. <scriptFile>src/main/package/rpm/preremove.sh</scriptFile>
  207. <fileEncoding>utf-8</fileEncoding>
  208. </preremoveScriptlet>
  209. <mappings>
  210. <mapping>
  211. <directory>${resmonitor.install.dir}</directory>
  212. <username>root</username>
  213. <groupname>root</groupname>
  214. <sources>
  215. <source>
  216. <location>
  217. ${monitor.dir}/src/main/python/__init__.py
  218. </location>
  219. </source>
  220. <source>
  221. <location>
  222. ${monitor.dir}/src/main/python/main.py
  223. </location>
  224. </source>
  225. </sources>
  226. </mapping>
  227. <mapping>
  228. <directory>${resmonitor.install.dir}/core</directory>
  229. <sources>
  230. <source>
  231. <location>
  232. ${monitor.dir}/src/main/python/core
  233. </location>
  234. </source>
  235. </sources>
  236. </mapping>
  237. <mapping>
  238. <directory>${resmonitor.install.dir}/psutil</directory>
  239. <sources>
  240. <source>
  241. <location>
  242. ${monitor.dir}/src/main/python/psutil
  243. </location>
  244. <excludes>
  245. <exclude>build/**</exclude>
  246. <exclude>build/*</exclude>
  247. </excludes>
  248. </source>
  249. </sources>
  250. </mapping>
  251. <mapping>
  252. <directory>/etc/ambari-metrics-monitor/conf</directory>
  253. <configuration>true</configuration>
  254. </mapping>
  255. <mapping>
  256. <directory>/var/run/ambari-metrics-monitor</directory>
  257. </mapping>
  258. <mapping>
  259. <directory>/var/log/ambari-metrics-monitor</directory>
  260. </mapping>
  261. <mapping>
  262. <directory>/usr/sbin</directory>
  263. <filemode>755</filemode>
  264. <username>root</username>
  265. <groupname>root</groupname>
  266. <directoryIncluded>false</directoryIncluded>
  267. <sources>
  268. <source>
  269. <location>
  270. ${monitor.dir}/conf/unix/ambari-metrics-monitor
  271. </location>
  272. <filter>true</filter>
  273. </source>
  274. </sources>
  275. </mapping>
  276. </mappings>
  277. </configuration>
  278. </execution>
  279. <!--ambari-metrics-collector-->
  280. <execution>
  281. <id>ambari-metrics-collector</id>
  282. <phase>package</phase>
  283. <goals>
  284. <goal>rpm</goal>
  285. </goals>
  286. <configuration>
  287. <name>ambari-metrics-collector</name>
  288. <copyright>2012, Apache Software Foundation</copyright>
  289. <group>Development</group>
  290. <description>Maven Recipe: RPM Package.</description>
  291. <autoRequires>false</autoRequires>
  292. <requires>
  293. <require>${python.ver}</require>
  294. </requires>
  295. <defaultFilemode>644</defaultFilemode>
  296. <defaultDirmode>755</defaultDirmode>
  297. <defaultUsername>root</defaultUsername>
  298. <defaultGroupname>root</defaultGroupname>
  299. <mappings>
  300. <mapping>
  301. <!--jars-->
  302. <directory>/usr/lib/ambari-metrics-collector/</directory>
  303. <sources>
  304. <source>
  305. <location>${collector.dir}/target/lib</location>
  306. </source>
  307. <source>
  308. <location>
  309. ${collector.dir}/target/ambari-metrics-timelineservice-${project.version}.jar
  310. </location>
  311. </source>
  312. </sources>
  313. </mapping>
  314. <mapping>
  315. <!--embedded applications-->
  316. <directory>/usr/lib/ams-hbase/</directory>
  317. <sources>
  318. <source>
  319. <location>${collector.dir}/target/embedded/${hbase.folder}</location>
  320. <excludes>
  321. <exclude>bin/**</exclude>
  322. <exclude>bin/*</exclude>
  323. </excludes>
  324. </source>
  325. </sources>
  326. </mapping>
  327. <mapping>
  328. <directory>/usr/lib/ams-hbase/bin</directory>
  329. <filemode>755</filemode>
  330. <sources>
  331. <source>
  332. <location>${collector.dir}/target/embedded/${hbase.folder}/bin</location>
  333. </source>
  334. </sources>
  335. </mapping>
  336. <mapping>
  337. <directory>/usr/lib/ams-hbase/lib/</directory>
  338. <sources>
  339. <source>
  340. <location>${collector.dir}/target/lib</location>
  341. <includes>
  342. <include>phoenix*.jar</include>
  343. <include>antlr*.jar</include>
  344. </includes>
  345. </source>
  346. </sources>
  347. </mapping>
  348. <mapping>
  349. <directory>/usr/sbin</directory>
  350. <filemode>755</filemode>
  351. <username>root</username>
  352. <groupname>root</groupname>
  353. <directoryIncluded>false</directoryIncluded>
  354. <sources>
  355. <source>
  356. <location>${collector.dir}/conf/unix/ambari-metrics-collector</location>
  357. <filter>false</filter>
  358. </source>
  359. </sources>
  360. </mapping>
  361. <mapping>
  362. <directory>/etc/ambari-metrics-collector/conf</directory>
  363. <configuration>true</configuration>
  364. <sources>
  365. <source>
  366. <location>${collector.dir}/conf/unix/ams-env.sh</location>
  367. </source>
  368. <source>
  369. <location>${collector.dir}/conf/unix/ams-site.xml</location>
  370. </source>
  371. <source>
  372. <location>${collector.dir}/conf/unix/log4j.properties</location>
  373. </source>
  374. <source>
  375. <location>${collector.dir}/target/embedded/${hbase.folder}/conf/hbase-site.xml</location>
  376. </source>
  377. </sources>
  378. </mapping>
  379. <mapping>
  380. <directory>/etc/ams-hbase/conf</directory>
  381. <configuration>true</configuration>
  382. <sources>
  383. <source>
  384. <location>${collector.dir}/target/embedded/${hbase.folder}/conf</location>
  385. <includes>
  386. <include>*.*</include>
  387. </includes>
  388. </source>
  389. </sources>
  390. </mapping>
  391. <mapping>
  392. <directory>/var/run/ams-hbase</directory>
  393. </mapping>
  394. <mapping>
  395. <directory>/var/run/ambari-metrics-collector</directory>
  396. </mapping>
  397. <mapping>
  398. <directory>/var/log/ambari-metrics-collector</directory>
  399. </mapping>
  400. <mapping>
  401. <directory>/var/lib/ambari-metrics-collector</directory>
  402. </mapping>
  403. </mappings>
  404. </configuration>
  405. </execution>
  406. <!--hadoop-sink-->
  407. <execution>
  408. <id>ambari-metrics-hadoop-sink</id>
  409. <phase>package</phase>
  410. <goals>
  411. <goal>rpm</goal>
  412. </goals>
  413. <configuration>
  414. <name>ambari-metrics-hadoop-sink</name>
  415. <copyright>2012, Apache Software Foundation</copyright>
  416. <group>Development</group>
  417. <description>Maven Recipe: RPM Package.</description>
  418. <defaultDirmode>755</defaultDirmode>
  419. <defaultFilemode>644</defaultFilemode>
  420. <defaultUsername>root</defaultUsername>
  421. <defaultGroupname>root</defaultGroupname>
  422. <postinstallScriptlet>
  423. <scriptFile>${project.basedir}/src/main/package/rpm/sink/postinstall.sh</scriptFile>
  424. <fileEncoding>utf-8</fileEncoding>
  425. </postinstallScriptlet>
  426. <mappings>
  427. <mapping>
  428. <directory>/usr/lib/ambari-metrics-hadoop-sink</directory>
  429. <sources>
  430. <source>
  431. <location>${hadoop-sink.dir}/target/ambari-metrics-hadoop-sink-with-common-${project.version}.jar</location>
  432. </source>
  433. </sources>
  434. </mapping>
  435. <mapping>
  436. <directory>/usr/lib/flume/lib</directory>
  437. <sources>
  438. <source>
  439. <location>${flume-sink.dir}/target/ambari-metrics-flume-sink-with-common-${project.version}.jar</location>
  440. </source>
  441. </sources>
  442. </mapping>
  443. <mapping>
  444. <directory>/usr/lib/storm/lib</directory>
  445. <sources>
  446. <source>
  447. <location>${storm-sink.dir}/target/ambari-metrics-storm-sink-with-common-${project.version}.jar</location>
  448. </source>
  449. </sources>
  450. </mapping>
  451. </mappings>
  452. </configuration>
  453. </execution>
  454. </executions>
  455. </plugin>
  456. </plugins>
  457. </build>
  458. </profile>
  459. <profile>
  460. <id>deb</id>
  461. <activation>
  462. <property>
  463. <name>build-deb</name>
  464. </property>
  465. </activation>
  466. <build>
  467. <plugins>
  468. <plugin>
  469. <artifactId>jdeb</artifactId>
  470. <groupId>org.vafer</groupId>
  471. <version>1.0.1</version>
  472. <executions>
  473. <execution>
  474. <!-- unbinds rpm creation from maven lifecycle -->
  475. <phase>package</phase>
  476. <goals>
  477. <goal>jdeb</goal>
  478. </goals>
  479. </execution>
  480. </executions>
  481. <configuration>
  482. <controlDir>${project.build.directory}/deb/control</controlDir>
  483. <deb>${basedir}/target/${artifactId}_${package-version}-${package-release}.deb</deb>
  484. <dataSet>
  485. <data>
  486. <type>file</type>
  487. <src>${monitor.dir}/src/main/python/__init__.py</src>
  488. <mapper>
  489. <type>perm</type>
  490. <prefix>${resmonitor.install.dir}</prefix>
  491. <!-- TODO: Figure out if file perms should be set -->
  492. <!--user>root</user>
  493. <group>root</group-->
  494. <filemode>755</filemode>
  495. </mapper>
  496. </data>
  497. <data>
  498. <type>file</type>
  499. <src>${monitor.dir}/src/main/python/main.py</src>
  500. <mapper>
  501. <type>perm</type>
  502. <prefix>${resmonitor.install.dir}</prefix>
  503. <filemode>755</filemode>
  504. </mapper>
  505. </data>
  506. <data>
  507. <type>directory</type>
  508. <src>${monitor.dir}/src/main/python/core</src>
  509. <mapper>
  510. <type>perm</type>
  511. <prefix>${resmonitor.install.dir}/core</prefix>
  512. </mapper>
  513. </data>
  514. <data>
  515. <type>directory</type>
  516. <src>${monitor.dir}/src/main/python/psutil</src>
  517. <excludes>build/**</excludes>
  518. <mapper>
  519. <type>perm</type>
  520. <prefix>${resmonitor.install.dir}/psutil</prefix>
  521. </mapper>
  522. </data>
  523. <data>
  524. <type>template</type>
  525. <paths>
  526. <path>/var/run/ambari-metrics-monitor</path>
  527. <path>/var/log/ambari-metrics-monitor</path>
  528. <path>/etc/ambari-metrics-monitor/conf</path>
  529. <path>/usr/lib/ambari-metrics-collector</path>
  530. <path>/etc/ambari-metrics-collector/conf</path>
  531. <path>/etc/ams-hbase/conf</path>
  532. <path>/var/run/ambari-metrics-collector</path>
  533. <path>/var/run/ams-hbase</path>
  534. <path>/var/log/ambari-metrics-collector</path>
  535. <path>/var/lib/ambari-metrics-collector</path>
  536. <path>/usr/lib/ambari-metrics-hadoop-sink</path>
  537. <path>/usr/lib/flume/lib</path>
  538. <path>/usr/lib/storm/lib</path>
  539. </paths>
  540. </data>
  541. <data>
  542. <src>${monitor.dir}/conf/unix/metric_groups.conf</src>
  543. <type>file</type>
  544. <mapper>
  545. <type>perm</type>
  546. <prefix>/etc/ambari-metrics-monitor/conf</prefix>
  547. <filemode>644</filemode>
  548. </mapper>
  549. </data>
  550. <data>
  551. <src>${monitor.dir}/conf/unix/metric_monitor.ini</src>
  552. <type>file</type>
  553. <mapper>
  554. <type>perm</type>
  555. <prefix>/etc/ambari-metrics-monitor/conf</prefix>
  556. <filemode>644</filemode>
  557. </mapper>
  558. </data>
  559. <data>
  560. <src>${monitor.dir}/conf/unix/ambari-metrics-monitor</src>
  561. <type>file</type>
  562. <mapper>
  563. <type>perm</type>
  564. <prefix>/usr/sbin</prefix>
  565. <filemode>755</filemode>
  566. </mapper>
  567. </data>
  568. <!-- Metric collector -->
  569. <data>
  570. <src>${collector.dir}/target/ambari-metrics-timelineservice-${project.version}.jar</src>
  571. <type>file</type>
  572. <mapper>
  573. <type>perm</type>
  574. <dirmode>644</dirmode>
  575. <prefix>/usr/lib/ambari-metrics-collector</prefix>
  576. </mapper>
  577. </data>
  578. <data>
  579. <src>${collector.dir}/target/lib</src>
  580. <type>directory</type>
  581. <mapper>
  582. <type>perm</type>
  583. <filemode>644</filemode>
  584. <prefix>/usr/lib/ambari-metrics-collector</prefix>
  585. </mapper>
  586. </data>
  587. <data>
  588. <src>${collector.dir}/target/embedded/${hbase.folder}</src>
  589. <type>directory</type>
  590. <excludes>bin/**,bin/*</excludes>
  591. <mapper>
  592. <type>perm</type>
  593. <prefix>/usr/lib/ams-hbase</prefix>
  594. <filemode>644</filemode>
  595. </mapper>
  596. </data>
  597. <data>
  598. <src>${collector.dir}/target/embedded/${hbase.folder}/bin</src>
  599. <type>directory</type>
  600. <mapper>
  601. <type>perm</type>
  602. <filemode>755</filemode>
  603. <prefix>/usr/lib/ams-hbase/bin</prefix>
  604. </mapper>
  605. </data>
  606. <data>
  607. <src>${collector.dir}/target/lib</src>
  608. <type>directory</type>
  609. <includes>phoenix*.jar,antlr*.jar</includes>
  610. <mapper>
  611. <type>perm</type>
  612. <filemode>644</filemode>
  613. <prefix>/usr/lib/ams-hbase/lib</prefix>
  614. </mapper>
  615. </data>
  616. <data>
  617. <src>${collector.dir}/conf/unix/ambari-metrics-collector</src>
  618. <type>file</type>
  619. <mapper>
  620. <type>perm</type>
  621. <filemode>755</filemode>
  622. <prefix>/usr/sbin</prefix>
  623. </mapper>
  624. </data>
  625. <data>
  626. <src>${collector.dir}/conf/unix/ams-env.sh</src>
  627. <type>file</type>
  628. <mapper>
  629. <type>perm</type>
  630. <filemode>755</filemode>
  631. <prefix>/etc/ambari-metrics-collector/conf</prefix>
  632. </mapper>
  633. </data>
  634. <data>
  635. <src>${collector.dir}/conf/unix/ams-site.xml</src>
  636. <type>file</type>
  637. <mapper>
  638. <type>perm</type>
  639. <filemode>644</filemode>
  640. <prefix>/etc/ambari-metrics-collector/conf</prefix>
  641. </mapper>
  642. </data>
  643. <data>
  644. <src>${collector.dir}/conf/unix/log4j.properties</src>
  645. <type>file</type>
  646. <mapper>
  647. <type>perm</type>
  648. <filemode>644</filemode>
  649. <prefix>/etc/ambari-metrics-collector/conf</prefix>
  650. </mapper>
  651. </data>
  652. <data>
  653. <src>${collector.dir}/target/embedded/${hbase.folder}/conf/hbase-site.xml</src>
  654. <type>file</type>
  655. <mapper>
  656. <type>perm</type>
  657. <filemode>644</filemode>
  658. <prefix>/etc/ambari-metrics-collector/conf</prefix>
  659. </mapper>
  660. </data>
  661. <data>
  662. <type>directory</type>
  663. <src>${collector.dir}/target/embedded/${hbase.folder}/conf</src>
  664. <mapper>
  665. <type>perm</type>
  666. <dirmode>755</dirmode>
  667. <filemode>644</filemode>
  668. <prefix>/etc/ams-hbase/conf</prefix>
  669. </mapper>
  670. </data>
  671. <!-- hadoop sink -->
  672. <data>
  673. <src>${hadoop-sink.dir}/target/ambari-metrics-hadoop-sink-with-common-${project.version}.jar</src>
  674. <type>file</type>
  675. <mapper>
  676. <type>perm</type>
  677. <filemode>644</filemode>
  678. <dirmode>755</dirmode>
  679. <prefix>/usr/lib/ambari-metrics-hadoop-sink</prefix>
  680. </mapper>
  681. </data>
  682. <!-- flume sink -->
  683. <data>
  684. <src>${flume-sink.dir}/target/${flume.sink.jar}</src>
  685. <type>file</type>
  686. <mapper>
  687. <type>perm</type>
  688. <filemode>644</filemode>
  689. <dirmode>755</dirmode>
  690. <prefix>/usr/lib/flume/lib</prefix>
  691. </mapper>
  692. </data>
  693. <!-- storm sink -->
  694. <data>
  695. <src>${storm-sink.dir}/target/${storm.sink.jar}</src>
  696. <type>file</type>
  697. <mapper>
  698. <type>perm</type>
  699. <filemode>644</filemode>
  700. <dirmode>755</dirmode>
  701. <prefix>/usr/lib/storm/lib</prefix>
  702. </mapper>
  703. </data>
  704. </dataSet>
  705. </configuration>
  706. </plugin>
  707. </plugins>
  708. </build>
  709. </profile>
  710. <profile>
  711. <id>windows</id>
  712. <activation>
  713. <os>
  714. <family>win</family>
  715. </os>
  716. </activation>
  717. <properties>
  718. <envClassifier>win</envClassifier>
  719. <dirsep>\</dirsep>
  720. <pathsep>;</pathsep>
  721. <executable.python>python</executable.python>
  722. <executable.shell>cmd</executable.shell>
  723. <fileextension.shell>cmd</fileextension.shell>
  724. <fileextension.dot.shell-default>.cmd</fileextension.dot.shell-default>
  725. <assemblydescriptor.collector>src/main/assembly/collector-windows.xml</assemblydescriptor.collector>
  726. <assemblydescriptor.monitor>src/main/assembly/monitor-windows.xml</assemblydescriptor.monitor>
  727. <assemblydescriptor.sink>src/main/assembly/sink-windows.xml</assemblydescriptor.sink>
  728. <packagingFormat>jar</packagingFormat>
  729. </properties>
  730. </profile>
  731. <profile>
  732. <id>linux</id>
  733. <activation>
  734. <os>
  735. <family>unix</family>
  736. </os>
  737. </activation>
  738. <properties>
  739. <envClassifier>linux</envClassifier>
  740. <dirsep>/</dirsep>
  741. <pathsep>:</pathsep>
  742. <executable.python>${project.basedir}/../ambari-common/src/main/unix/ambari-python-wrap</executable.python>
  743. <executable.shell>sh</executable.shell>
  744. <fileextension.shell>sh</fileextension.shell>
  745. <fileextension.dot.shell-default></fileextension.dot.shell-default>
  746. <assemblydescriptor.collector>src/main/assembly/collector.xml</assemblydescriptor.collector>
  747. <assemblydescriptor.monitor>src/main/assembly/monitor.xml</assemblydescriptor.monitor>
  748. <assemblydescriptor.sink>src/main/assembly/sink.xml</assemblydescriptor.sink>
  749. <packagingFormat>jar</packagingFormat>
  750. </properties>
  751. </profile>
  752. </profiles>
  753. <dependencies>
  754. <dependency>
  755. <groupId>org.apache.ambari</groupId>
  756. <artifactId>ambari-metrics-timelineservice</artifactId>
  757. <version>${project.version}</version>
  758. </dependency>
  759. <dependency>
  760. <groupId>org.apache.ambari</groupId>
  761. <artifactId>ambari-metrics-common</artifactId>
  762. <version>${project.version}</version>
  763. </dependency>
  764. <dependency>
  765. <groupId>org.apache.ambari</groupId>
  766. <artifactId>ambari-metrics-hadoop-sink</artifactId>
  767. <version>${project.version}</version>
  768. </dependency>
  769. <dependency>
  770. <groupId>org.apache.ambari</groupId>
  771. <artifactId>ambari-metrics-flume-sink</artifactId>
  772. <version>${project.version}</version>
  773. </dependency>
  774. <dependency>
  775. <groupId>org.apache.ambari</groupId>
  776. <artifactId>ambari-metrics-storm-sink</artifactId>
  777. <version>${project.version}</version>
  778. </dependency>
  779. <dependency>
  780. <groupId>org.apache.ambari</groupId>
  781. <artifactId>ambari-metrics-host-monitoring</artifactId>
  782. <version>${project.version}</version>
  783. <type>pom</type>
  784. <optional>true</optional>
  785. </dependency>
  786. </dependencies>
  787. </project>