pom.xml 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752
  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. <properties>
  31. <collector.dir>${project.basedir}/../ambari-metrics-timelineservice</collector.dir>
  32. <monitor.dir>${project.basedir}/../ambari-metrics-host-monitoring</monitor.dir>
  33. <hadoop-sink.dir>${project.basedir}/../ambari-metrics-hadoop-sink</hadoop-sink.dir>
  34. <storm-sink.dir>${project.basedir}/../ambari-metrics-storm-sink</storm-sink.dir>
  35. <flume-sink.dir>${project.basedir}/../ambari-metrics-flume-sink</flume-sink.dir>
  36. <python.ver>python &gt;= 2.6</python.ver>
  37. <deb.python.ver>python (&gt;= 2.6)</deb.python.ver>
  38. <deb.architecture>amd64</deb.architecture>
  39. <deb.dependency.list>${deb.python.ver},python-dev,gcc</deb.dependency.list>
  40. <hadoop.sink.jar>ambari-metrics-hadoop-sink-with-common-${project.version}.jar</hadoop.sink.jar>
  41. <storm.sink.jar>ambari-metrics-storm-sink-with-common-${project.version}.jar</storm.sink.jar>
  42. <flume.sink.jar>ambari-metrics-flume-sink-with-common-${project.version}.jar</flume.sink.jar>
  43. </properties>
  44. <build>
  45. <plugins>
  46. <plugin>
  47. <artifactId>maven-resources-plugin</artifactId>
  48. <version>2.7</version>
  49. <executions>
  50. <execution>
  51. <id>copy-resources</id>
  52. <phase>prepare-package</phase>
  53. <goals>
  54. <goal>copy-resources</goal>
  55. </goals>
  56. <configuration>
  57. <outputDirectory>${project.build.directory}/deb/control</outputDirectory>
  58. <resources>
  59. <resource>
  60. <directory>${project.basedir}/src/main/package/deb/control</directory>
  61. <excludes>
  62. <exclude>postinst</exclude>
  63. </excludes>
  64. <filtering>false</filtering>
  65. </resource>
  66. <resource>
  67. <directory>${project.basedir}/src/main/package/deb/control</directory>
  68. <includes>
  69. <include>postinst</include>
  70. </includes>
  71. <filtering>true</filtering>
  72. </resource>
  73. </resources>
  74. </configuration>
  75. </execution>
  76. </executions>
  77. </plugin>
  78. <plugin>
  79. <artifactId>maven-assembly-plugin</artifactId>
  80. <executions>
  81. <execution>
  82. <id>collector</id>
  83. <phase>package</phase>
  84. <goals>
  85. <goal>single</goal>
  86. </goals>
  87. <configuration>
  88. <attach>false</attach>
  89. <finalName>ambari-metrics-collector-${project.version}</finalName>
  90. <appendAssemblyId>false</appendAssemblyId>
  91. <descriptors>
  92. <descriptor>src/main/assembly/collector.xml</descriptor>
  93. </descriptors>
  94. <tarLongFileMode>gnu</tarLongFileMode>
  95. </configuration>
  96. </execution>
  97. <execution>
  98. <id>monitor</id>
  99. <phase>package</phase>
  100. <goals>
  101. <goal>single</goal>
  102. </goals>
  103. <configuration>
  104. <attach>false</attach>
  105. <finalName>ambari-metrics-monitor-${project.version}</finalName>
  106. <appendAssemblyId>false</appendAssemblyId>
  107. <descriptors>
  108. <descriptor>src/main/assembly/monitor.xml</descriptor>
  109. </descriptors>
  110. <tarLongFileMode>gnu</tarLongFileMode>
  111. </configuration>
  112. </execution>
  113. <execution>
  114. <id>hadoop-sink</id>
  115. <phase>package</phase>
  116. <goals>
  117. <goal>single</goal>
  118. </goals>
  119. <configuration>
  120. <attach>false</attach>
  121. <finalName>ambari-metrics-hadoop-sink-${project.version}</finalName>
  122. <appendAssemblyId>false</appendAssemblyId>
  123. <descriptors>
  124. <descriptor>src/main/assembly/sink.xml</descriptor>
  125. </descriptors>
  126. <tarLongFileMode>gnu</tarLongFileMode>
  127. </configuration>
  128. </execution>
  129. </executions>
  130. </plugin>
  131. </plugins>
  132. </build>
  133. <profiles>
  134. <profile>
  135. <id>rpm</id>
  136. <activation>
  137. <property>
  138. <name>build-rpm</name>
  139. </property>
  140. </activation>
  141. <build>
  142. <plugins>
  143. <plugin>
  144. <groupId>org.codehaus.mojo</groupId>
  145. <artifactId>rpm-maven-plugin</artifactId>
  146. <version>2.0.1</version>
  147. <configuration>
  148. <group>Development</group>
  149. <needarch>x86_64</needarch>
  150. <copyright>2012, Apache Software Foundation</copyright>
  151. <version>${package-version}</version>
  152. <release>${package-release}</release>
  153. <defaultFilemode>644</defaultFilemode>
  154. <defaultDirmode>755</defaultDirmode>
  155. <defaultUsername>root</defaultUsername>
  156. <defaultGroupname>root</defaultGroupname>
  157. </configuration>
  158. <executions>
  159. <!--ambari-metrics-monitor-->
  160. <execution>
  161. <id>ambari-metrics-monitor</id>
  162. <!-- unbinds rpm creation from maven lifecycle -->
  163. <phase>package</phase>
  164. <goals>
  165. <goal>rpm</goal>
  166. </goals>
  167. <configuration>
  168. <name>ambari-metrics-monitor</name>
  169. <group>Development</group>
  170. <needarch>x86_64</needarch>
  171. <autoRequires>false</autoRequires>
  172. <requires>
  173. <require>${python.ver}</require>
  174. <require>gcc</require>
  175. <require>python-devel</require>
  176. </requires>
  177. <preremoveScriptlet>
  178. <scriptFile>src/main/package/rpm/preremove.sh</scriptFile>
  179. <fileEncoding>utf-8</fileEncoding>
  180. </preremoveScriptlet>
  181. <mappings>
  182. <mapping>
  183. <directory>${resmonitor.install.dir}</directory>
  184. <username>root</username>
  185. <groupname>root</groupname>
  186. <sources>
  187. <source>
  188. <location>
  189. ${monitor.dir}/src/main/python/__init__.py
  190. </location>
  191. </source>
  192. <source>
  193. <location>
  194. ${monitor.dir}/src/main/python/main.py
  195. </location>
  196. </source>
  197. </sources>
  198. </mapping>
  199. <mapping>
  200. <directory>${resmonitor.install.dir}/core</directory>
  201. <sources>
  202. <source>
  203. <location>
  204. ${monitor.dir}/src/main/python/core
  205. </location>
  206. </source>
  207. </sources>
  208. </mapping>
  209. <mapping>
  210. <directory>${resmonitor.install.dir}/psutil</directory>
  211. <sources>
  212. <source>
  213. <location>
  214. ${monitor.dir}/src/main/python/psutil
  215. </location>
  216. <excludes>
  217. <exclude>build/**</exclude>
  218. <exclude>build/*</exclude>
  219. </excludes>
  220. </source>
  221. </sources>
  222. </mapping>
  223. <mapping>
  224. <directory>/etc/ambari-metrics-monitor/conf</directory>
  225. <configuration>true</configuration>
  226. </mapping>
  227. <mapping>
  228. <directory>/var/run/ambari-metrics-monitor</directory>
  229. </mapping>
  230. <mapping>
  231. <directory>/var/log/ambari-metrics-monitor</directory>
  232. </mapping>
  233. <mapping>
  234. <directory>/usr/sbin</directory>
  235. <filemode>755</filemode>
  236. <username>root</username>
  237. <groupname>root</groupname>
  238. <directoryIncluded>false</directoryIncluded>
  239. <sources>
  240. <source>
  241. <location>
  242. ${monitor.dir}/conf/unix/ambari-metrics-monitor
  243. </location>
  244. <filter>true</filter>
  245. </source>
  246. </sources>
  247. </mapping>
  248. </mappings>
  249. </configuration>
  250. </execution>
  251. <!--ambari-metrics-collector-->
  252. <execution>
  253. <id>ambari-metrics-collector</id>
  254. <phase>package</phase>
  255. <goals>
  256. <goal>rpm</goal>
  257. </goals>
  258. <configuration>
  259. <name>ambari-metrics-collector</name>
  260. <copyright>2012, Apache Software Foundation</copyright>
  261. <group>Development</group>
  262. <description>Maven Recipe: RPM Package.</description>
  263. <autoRequires>false</autoRequires>
  264. <requires>
  265. <require>${python.ver}</require>
  266. </requires>
  267. <defaultFilemode>644</defaultFilemode>
  268. <defaultDirmode>755</defaultDirmode>
  269. <defaultUsername>root</defaultUsername>
  270. <defaultGroupname>root</defaultGroupname>
  271. <mappings>
  272. <mapping>
  273. <!--jars-->
  274. <directory>/usr/lib/ambari-metrics-collector/</directory>
  275. <sources>
  276. <source>
  277. <location>${collector.dir}/target/lib</location>
  278. </source>
  279. <source>
  280. <location>
  281. ${collector.dir}/target/ambari-metrics-timelineservice-${project.version}.jar
  282. </location>
  283. </source>
  284. </sources>
  285. </mapping>
  286. <mapping>
  287. <!--embedded applications-->
  288. <directory>/usr/lib/ams-hbase/</directory>
  289. <sources>
  290. <source>
  291. <location>${collector.dir}/target/embedded/${hbase.folder}</location>
  292. <excludes>
  293. <exclude>bin/**</exclude>
  294. <exclude>bin/*</exclude>
  295. </excludes>
  296. </source>
  297. </sources>
  298. </mapping>
  299. <mapping>
  300. <directory>/usr/lib/ams-hbase/bin</directory>
  301. <filemode>755</filemode>
  302. <sources>
  303. <source>
  304. <location>${collector.dir}/target/embedded/${hbase.folder}/bin</location>
  305. </source>
  306. </sources>
  307. </mapping>
  308. <mapping>
  309. <directory>/usr/lib/ams-hbase/lib/</directory>
  310. <sources>
  311. <source>
  312. <location>${collector.dir}/target/lib</location>
  313. <includes>
  314. <include>phoenix*.jar</include>
  315. <include>antlr*.jar</include>
  316. </includes>
  317. </source>
  318. </sources>
  319. </mapping>
  320. <mapping>
  321. <directory>/usr/sbin</directory>
  322. <filemode>755</filemode>
  323. <username>root</username>
  324. <groupname>root</groupname>
  325. <directoryIncluded>false</directoryIncluded>
  326. <sources>
  327. <source>
  328. <location>${collector.dir}/conf/unix/ambari-metrics-collector</location>
  329. <filter>false</filter>
  330. </source>
  331. </sources>
  332. </mapping>
  333. <mapping>
  334. <directory>/etc/ambari-metrics-collector/conf</directory>
  335. <configuration>true</configuration>
  336. <sources>
  337. <source>
  338. <location>${collector.dir}/conf/unix/ams-env.sh</location>
  339. </source>
  340. <source>
  341. <location>${collector.dir}/conf/unix/ams-site.xml</location>
  342. </source>
  343. <source>
  344. <location>${collector.dir}/conf/unix/log4j.properties</location>
  345. </source>
  346. <source>
  347. <location>${collector.dir}/target/embedded/${hbase.folder}/conf/hbase-site.xml</location>
  348. </source>
  349. </sources>
  350. </mapping>
  351. <mapping>
  352. <directory>/etc/ams-hbase/conf</directory>
  353. <configuration>true</configuration>
  354. <sources>
  355. <source>
  356. <location>${collector.dir}/target/embedded/${hbase.folder}/conf</location>
  357. <includes>
  358. <include>*.*</include>
  359. </includes>
  360. </source>
  361. </sources>
  362. </mapping>
  363. <mapping>
  364. <directory>/var/run/ams-hbase</directory>
  365. </mapping>
  366. <mapping>
  367. <directory>/var/run/ambari-metrics-collector</directory>
  368. </mapping>
  369. <mapping>
  370. <directory>/var/log/ambari-metrics-collector</directory>
  371. </mapping>
  372. <mapping>
  373. <directory>/var/lib/ambari-metrics-collector</directory>
  374. </mapping>
  375. </mappings>
  376. </configuration>
  377. </execution>
  378. <!--hadoop-sink-->
  379. <execution>
  380. <id>ambari-metrics-hadoop-sink</id>
  381. <phase>package</phase>
  382. <goals>
  383. <goal>rpm</goal>
  384. </goals>
  385. <configuration>
  386. <name>ambari-metrics-hadoop-sink</name>
  387. <copyright>2012, Apache Software Foundation</copyright>
  388. <group>Development</group>
  389. <description>Maven Recipe: RPM Package.</description>
  390. <defaultDirmode>755</defaultDirmode>
  391. <defaultFilemode>644</defaultFilemode>
  392. <defaultUsername>root</defaultUsername>
  393. <defaultGroupname>root</defaultGroupname>
  394. <postinstallScriptlet>
  395. <scriptFile>${project.basedir}/src/main/package/rpm/sink/postinstall.sh</scriptFile>
  396. <fileEncoding>utf-8</fileEncoding>
  397. </postinstallScriptlet>
  398. <mappings>
  399. <mapping>
  400. <directory>/usr/lib/ambari-metrics-hadoop-sink</directory>
  401. <sources>
  402. <source>
  403. <location>${hadoop-sink.dir}/target/ambari-metrics-hadoop-sink-with-common-${project.version}.jar</location>
  404. </source>
  405. </sources>
  406. </mapping>
  407. <mapping>
  408. <directory>/usr/lib/flume/lib</directory>
  409. <sources>
  410. <source>
  411. <location>${flume-sink.dir}/target/ambari-metrics-flume-sink-with-common-${project.version}.jar</location>
  412. </source>
  413. </sources>
  414. </mapping>
  415. <mapping>
  416. <directory>/usr/lib/storm/lib</directory>
  417. <sources>
  418. <source>
  419. <location>${storm-sink.dir}/target/ambari-metrics-storm-sink-with-common-${project.version}.jar</location>
  420. </source>
  421. </sources>
  422. </mapping>
  423. </mappings>
  424. </configuration>
  425. </execution>
  426. </executions>
  427. </plugin>
  428. </plugins>
  429. </build>
  430. </profile>
  431. <profile>
  432. <id>deb</id>
  433. <activation>
  434. <property>
  435. <name>build-deb</name>
  436. </property>
  437. </activation>
  438. <build>
  439. <plugins>
  440. <plugin>
  441. <artifactId>jdeb</artifactId>
  442. <groupId>org.vafer</groupId>
  443. <version>1.0.1</version>
  444. <executions>
  445. <execution>
  446. <!-- unbinds rpm creation from maven lifecycle -->
  447. <phase>package</phase>
  448. <goals>
  449. <goal>jdeb</goal>
  450. </goals>
  451. </execution>
  452. </executions>
  453. <configuration>
  454. <controlDir>${project.build.directory}/deb/control</controlDir>
  455. <deb>${basedir}/target/${artifactId}_${package-version}-${package-release}.deb</deb>
  456. <dataSet>
  457. <data>
  458. <type>file</type>
  459. <src>${monitor.dir}/src/main/python/__init__.py</src>
  460. <mapper>
  461. <type>perm</type>
  462. <prefix>${resmonitor.install.dir}</prefix>
  463. <!-- TODO: Figure out if file perms should be set -->
  464. <!--user>root</user>
  465. <group>root</group-->
  466. <filemode>755</filemode>
  467. </mapper>
  468. </data>
  469. <data>
  470. <type>file</type>
  471. <src>${monitor.dir}/src/main/python/main.py</src>
  472. <mapper>
  473. <type>perm</type>
  474. <prefix>${resmonitor.install.dir}</prefix>
  475. <filemode>755</filemode>
  476. </mapper>
  477. </data>
  478. <data>
  479. <type>directory</type>
  480. <src>${monitor.dir}/src/main/python/core</src>
  481. <mapper>
  482. <type>perm</type>
  483. <prefix>${resmonitor.install.dir}/core</prefix>
  484. </mapper>
  485. </data>
  486. <data>
  487. <type>directory</type>
  488. <src>${monitor.dir}/src/main/python/psutil</src>
  489. <excludes>build/**</excludes>
  490. <mapper>
  491. <type>perm</type>
  492. <prefix>${resmonitor.install.dir}/psutil</prefix>
  493. </mapper>
  494. </data>
  495. <data>
  496. <type>template</type>
  497. <paths>
  498. <path>/var/run/ambari-metrics-monitor</path>
  499. <path>/var/log/ambari-metrics-monitor</path>
  500. <path>/etc/ambari-metrics-monitor/conf</path>
  501. <path>/usr/lib/ambari-metrics-collector</path>
  502. <path>/etc/ambari-metrics-collector/conf</path>
  503. <path>/etc/ams-hbase/conf</path>
  504. <path>/var/run/ambari-metrics-collector</path>
  505. <path>/var/run/ams-hbase</path>
  506. <path>/var/log/ambari-metrics-collector</path>
  507. <path>/var/lib/ambari-metrics-collector</path>
  508. <path>/usr/lib/ambari-metrics-hadoop-sink</path>
  509. <path>/usr/lib/flume/lib</path>
  510. <path>/usr/lib/storm/lib</path>
  511. </paths>
  512. </data>
  513. <data>
  514. <src>${monitor.dir}/conf/unix/metric_groups.conf</src>
  515. <type>file</type>
  516. <mapper>
  517. <type>perm</type>
  518. <prefix>/etc/ambari-metrics-monitor/conf</prefix>
  519. <filemode>644</filemode>
  520. </mapper>
  521. </data>
  522. <data>
  523. <src>${monitor.dir}/conf/unix/metric_monitor.ini</src>
  524. <type>file</type>
  525. <mapper>
  526. <type>perm</type>
  527. <prefix>/etc/ambari-metrics-monitor/conf</prefix>
  528. <filemode>644</filemode>
  529. </mapper>
  530. </data>
  531. <data>
  532. <src>${monitor.dir}/conf/unix/ambari-metrics-monitor</src>
  533. <type>file</type>
  534. <mapper>
  535. <type>perm</type>
  536. <prefix>/usr/sbin</prefix>
  537. <filemode>755</filemode>
  538. </mapper>
  539. </data>
  540. <!-- Metric collector -->
  541. <data>
  542. <src>${collector.dir}/target/ambari-metrics-timelineservice-${project.version}.jar</src>
  543. <type>file</type>
  544. <mapper>
  545. <type>perm</type>
  546. <dirmode>644</dirmode>
  547. <prefix>/usr/lib/ambari-metrics-collector</prefix>
  548. </mapper>
  549. </data>
  550. <data>
  551. <src>${collector.dir}/target/lib</src>
  552. <type>directory</type>
  553. <mapper>
  554. <type>perm</type>
  555. <filemode>644</filemode>
  556. <prefix>/usr/lib/ambari-metrics-collector</prefix>
  557. </mapper>
  558. </data>
  559. <data>
  560. <src>${collector.dir}/target/embedded/${hbase.folder}</src>
  561. <type>directory</type>
  562. <excludes>bin/**,bin/*</excludes>
  563. <mapper>
  564. <type>perm</type>
  565. <prefix>/usr/lib/ams-hbase</prefix>
  566. <filemode>644</filemode>
  567. </mapper>
  568. </data>
  569. <data>
  570. <src>${collector.dir}/target/embedded/${hbase.folder}/bin</src>
  571. <type>directory</type>
  572. <mapper>
  573. <type>perm</type>
  574. <filemode>755</filemode>
  575. <prefix>/usr/lib/ams-hbase/bin</prefix>
  576. </mapper>
  577. </data>
  578. <data>
  579. <src>${collector.dir}/target/lib</src>
  580. <type>directory</type>
  581. <includes>phoenix*.jar,antlr*.jar</includes>
  582. <mapper>
  583. <type>perm</type>
  584. <filemode>644</filemode>
  585. <prefix>/usr/lib/ams-hbase/lib</prefix>
  586. </mapper>
  587. </data>
  588. <data>
  589. <src>${collector.dir}/conf/unix/ambari-metrics-collector</src>
  590. <type>file</type>
  591. <mapper>
  592. <type>perm</type>
  593. <filemode>755</filemode>
  594. <prefix>/usr/sbin</prefix>
  595. </mapper>
  596. </data>
  597. <data>
  598. <src>${collector.dir}/conf/unix/ams-env.sh</src>
  599. <type>file</type>
  600. <mapper>
  601. <type>perm</type>
  602. <filemode>755</filemode>
  603. <prefix>/etc/ambari-metrics-collector/conf</prefix>
  604. </mapper>
  605. </data>
  606. <data>
  607. <src>${collector.dir}/conf/unix/ams-site.xml</src>
  608. <type>file</type>
  609. <mapper>
  610. <type>perm</type>
  611. <filemode>644</filemode>
  612. <prefix>/etc/ambari-metrics-collector/conf</prefix>
  613. </mapper>
  614. </data>
  615. <data>
  616. <src>${collector.dir}/conf/unix/log4j.properties</src>
  617. <type>file</type>
  618. <mapper>
  619. <type>perm</type>
  620. <filemode>644</filemode>
  621. <prefix>/etc/ambari-metrics-collector/conf</prefix>
  622. </mapper>
  623. </data>
  624. <data>
  625. <src>${collector.dir}/target/embedded/${hbase.folder}/conf/hbase-site.xml</src>
  626. <type>file</type>
  627. <mapper>
  628. <type>perm</type>
  629. <filemode>644</filemode>
  630. <prefix>/etc/ambari-metrics-collector/conf</prefix>
  631. </mapper>
  632. </data>
  633. <data>
  634. <type>directory</type>
  635. <src>${collector.dir}/target/embedded/${hbase.folder}/conf</src>
  636. <mapper>
  637. <type>perm</type>
  638. <dirmode>755</dirmode>
  639. <filemode>644</filemode>
  640. <prefix>/etc/ams-hbase/conf</prefix>
  641. </mapper>
  642. </data>
  643. <!-- hadoop sink -->
  644. <data>
  645. <src>${hadoop-sink.dir}/target/ambari-metrics-hadoop-sink-with-common-${project.version}.jar</src>
  646. <type>file</type>
  647. <mapper>
  648. <type>perm</type>
  649. <filemode>644</filemode>
  650. <dirmode>755</dirmode>
  651. <prefix>/usr/lib/ambari-metrics-hadoop-sink</prefix>
  652. </mapper>
  653. </data>
  654. <!-- flume sink -->
  655. <data>
  656. <src>${flume-sink.dir}/target/${flume.sink.jar}</src>
  657. <type>file</type>
  658. <mapper>
  659. <type>perm</type>
  660. <filemode>644</filemode>
  661. <dirmode>755</dirmode>
  662. <prefix>/usr/lib/flume/lib</prefix>
  663. </mapper>
  664. </data>
  665. <!-- storm sink -->
  666. <data>
  667. <src>${storm-sink.dir}/target/${storm.sink.jar}</src>
  668. <type>file</type>
  669. <mapper>
  670. <type>perm</type>
  671. <filemode>644</filemode>
  672. <dirmode>755</dirmode>
  673. <prefix>/usr/lib/storm/lib</prefix>
  674. </mapper>
  675. </data>
  676. </dataSet>
  677. </configuration>
  678. </plugin>
  679. </plugins>
  680. </build>
  681. </profile>
  682. </profiles>
  683. <dependencies>
  684. <dependency>
  685. <groupId>org.apache.ambari</groupId>
  686. <artifactId>ambari-metrics-timelineservice</artifactId>
  687. <version>${project.version}</version>
  688. </dependency>
  689. <dependency>
  690. <groupId>org.apache.ambari</groupId>
  691. <artifactId>ambari-metrics-common</artifactId>
  692. <version>${project.version}</version>
  693. </dependency>
  694. <dependency>
  695. <groupId>org.apache.ambari</groupId>
  696. <artifactId>ambari-metrics-hadoop-sink</artifactId>
  697. <version>${project.version}</version>
  698. </dependency>
  699. <dependency>
  700. <groupId>org.apache.ambari</groupId>
  701. <artifactId>ambari-metrics-flume-sink</artifactId>
  702. <version>${project.version}</version>
  703. </dependency>
  704. <dependency>
  705. <groupId>org.apache.ambari</groupId>
  706. <artifactId>ambari-metrics-storm-sink</artifactId>
  707. <version>${project.version}</version>
  708. </dependency>
  709. <dependency>
  710. <groupId>org.apache.ambari</groupId>
  711. <artifactId>ambari-metrics-host-monitoring</artifactId>
  712. <version>${project.version}</version>
  713. <type>pom</type>
  714. <optional>true</optional>
  715. </dependency>
  716. </dependencies>
  717. </project>