[ https://issues.apache.org/jira/browse/AMBARI-25811?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17649938#comment-17649938 ]
Brahma Reddy Battula commented on AMBARI-25811: ----------------------------------------------- [~arshad.mohammad] thanks for reporting and providing the patch. I committed to metrics truck branch.. do you plan to contribute to branch-2.7 also? > Optimize ambari metrics build time > ---------------------------------- > > Key: AMBARI-25811 > URL: https://issues.apache.org/jira/browse/AMBARI-25811 > Project: Ambari > Issue Type: Improvement > Components: build, metrics > Reporter: Mohammad Arshad > Assignee: Mohammad Arshad > Priority: Major > Labels: pull-request-available > Fix For: 2.0.0 > > > Currently in ambari metrics build, most of the time is taken by > ambari-metrics-assembly. > Looks maven-assembly-plugin is taking lot of time in stitching the artifacts. > Upgrading maven-assembly-plugin from 2.2-beta-5 to 3.4.2(latest version) > reduces the build time significantly > *Before change:* > {noformat} > 15:58:46,215 [INFO] Reactor Summary for ambari-metrics 2.0.0.0-SNAPSHOT: > 15:58:46,215 [INFO] > 15:58:46,218 [INFO] ambari-metrics ..................................... > SUCCESS [ 3.960 s] > 15:58:46,220 [INFO] Ambari Metrics Common .............................. > SUCCESS [ 11.492 s] > 15:58:46,220 [INFO] Ambari Metrics Hadoop Sink ......................... > SUCCESS [ 7.655 s] > 15:58:46,220 [INFO] Ambari Metrics Flume Sink .......................... > SUCCESS [ 4.045 s] > 15:58:46,220 [INFO] Ambari Metrics Kafka Sink .......................... > SUCCESS [ 3.465 s] > 15:58:46,220 [INFO] Ambari Metrics Storm Sink .......................... > SUCCESS [ 2.887 s] > 15:58:46,220 [INFO] Ambari Metrics Collector ........................... > SUCCESS [ 19.416 s] > 15:58:46,220 [INFO] Ambari Metrics Monitor ............................. > SUCCESS [ 4.791 s] > 15:58:46,220 [INFO] Ambari Metrics Grafana ............................. > SUCCESS [ 2.838 s] > 15:58:46,220 [INFO] Ambari Metrics Host Aggregator ..................... > SUCCESS [ 8.363 s] > 15:58:46,220 [INFO] Ambari Metrics Assembly ............................ > SUCCESS [09:09 min] > 15:58:46,220 [INFO] > ------------------------------------------------------------------------ > 15:58:46,220 [INFO] BUILD SUCCESS > 15:58:46,220 [INFO] > ------------------------------------------------------------------------ > 15:58:46,221 [INFO] Total time: 10:18 min > 15:58:46,221 [INFO] Finished at: 2022-12-14T15:58:46+05:30 > {noformat} > *After Change:* > {noformat} > 16:18:22,667 [INFO] Reactor Summary for ambari-metrics 2.0.0.0-SNAPSHOT: > 16:18:22,667 [INFO] > 16:18:22,670 [INFO] ambari-metrics ..................................... > SUCCESS [ 3.897 s] > 16:18:22,671 [INFO] Ambari Metrics Common .............................. > SUCCESS [ 10.880 s] > 16:18:22,671 [INFO] Ambari Metrics Hadoop Sink ......................... > SUCCESS [ 4.681 s] > 16:18:22,671 [INFO] Ambari Metrics Flume Sink .......................... > SUCCESS [ 2.184 s] > 16:18:22,671 [INFO] Ambari Metrics Kafka Sink .......................... > SUCCESS [ 2.949 s] > 16:18:22,671 [INFO] Ambari Metrics Storm Sink .......................... > SUCCESS [ 3.071 s] > 16:18:22,671 [INFO] Ambari Metrics Collector ........................... > SUCCESS [ 18.471 s] > 16:18:22,671 [INFO] Ambari Metrics Monitor ............................. > SUCCESS [ 5.416 s] > 16:18:22,671 [INFO] Ambari Metrics Grafana ............................. > SUCCESS [ 2.458 s] > 16:18:22,671 [INFO] Ambari Metrics Host Aggregator ..................... > SUCCESS [ 8.963 s] > 16:18:22,671 [INFO] Ambari Metrics Assembly ............................ > SUCCESS [ 57.413 s] > 16:18:22,671 [INFO] > ------------------------------------------------------------------------ > 16:18:22,671 [INFO] BUILD SUCCESS > 16:18:22,671 [INFO] > ------------------------------------------------------------------------ > 16:18:22,671 [INFO] Total time: 02:00 min > 16:18:22,673 [INFO] Finished at: 2022-12-14T16:18:22+05:30 > {noformat} > *As shown above, in my build environment, build time is reduced from 10 > minute to 2 minute.* -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@ambari.apache.org For additional commands, e-mail: issues-h...@ambari.apache.org