[ 
https://issues.apache.org/jira/browse/BIGTOP-1488?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Newton Alex updated BIGTOP-1488:
--------------------------------
    Attachment: BIGTOP-1488.v2.patch

Revised patch attached.

[~cos]  Sorry about the delay. Have attached the revised patch.

Here are the test results:
-----------------
bash-4.1# puppet apply --modulepath=`pwd` -e "include bigtop_toolchain::ant"
notice: /Stage[main]/Bigtop_toolchain::Packages/Package[libtool]/ensure: created
notice: /Stage[main]/Bigtop_toolchain::Packages/Package[git]/ensure: created
notice: /Stage[main]/Bigtop_toolchain::Packages/Package[gcc-c++]/ensure: created
notice: /Stage[main]/Bigtop_toolchain::Packages/Package[openssl-devel]/ensure: 
created
notice: /Stage[main]/Bigtop_toolchain::Packages/Package[createrepo]/ensure: 
created
notice: /Stage[main]/Bigtop_toolchain::Packages/Package[rpm-build]/ensure: 
created
notice: /Stage[main]/Bigtop_toolchain::Packages/Package[fuse]/ensure: created
notice: /Stage[main]/Bigtop_toolchain::Packages/Package[cppunit-devel]/ensure: 
created
notice: /Stage[main]/Bigtop_toolchain::Packages/Package[lzo-devel]/ensure: 
created
notice: /Stage[main]/Bigtop_toolchain::Packages/Package[cmake]/ensure: created
notice: 
/Stage[main]/Bigtop_toolchain::Packages/Package[redhat-rpm-config]/ensure: 
created
notice: /Stage[main]/Bigtop_toolchain::Packages/Package[fuse-devel]/ensure: 
created
notice: /Stage[main]/Bigtop_toolchain::Deps/Exec[/usr/bin/wget 
http://archive.apache.org/dist/forrest/0.9/apache-forrest-0.9.tar.gz]/returns: 
executed successfully
notice: /Stage[main]/Bigtop_toolchain::Deps/Exec[/usr/bin/wget 
https://launchpad.net/ubuntu/+archive/primary/+files/libprotobuf8_2.5.0-9ubuntu1_amd64.deb]/returns:
 executed successfully
notice: /Stage[main]/Bigtop_toolchain::Deps/Exec[/usr/bin/wget 
http://mirror.reverse.net/pub/apache//maven/maven-3/3.0.5/binaries/apache-maven-3.0.5-bin.tar.gz]/returns:
 executed successfully
notice: /Stage[main]/Bigtop_toolchain::Deps/Exec[/usr/bin/wget 
http://services.gradle.org/distributions/gradle-2.0-bin.zip]/returns: executed 
successfully
notice: /Stage[main]/Bigtop_toolchain::Deps/Exec[/usr/bin/wget 
https://launchpad.net/ubuntu/+archive/primary/+files/protobuf-compiler_2.5.0-9ubuntu1_amd64.deb]/returns:
 executed successfully
notice: /Stage[main]/Bigtop_toolchain::Deps/Exec[/usr/bin/wget 
http://mirror.reverse.net/pub/apache//ant/binaries/apache-ant-1.9.4-bin.tar.gz]/returns:
 executed successfully
notice: /Stage[main]/Bigtop_toolchain::Ant/Exec[/bin/tar xvzf 
/usr/src/apache-ant-1.9.4-bin.tar.gz]: Triggered 'refresh' from 1 events
notice: /Stage[main]/Bigtop_toolchain::Ant/File[/usr/local/ant]/ensure: created
notice: /Stage[main]/Bigtop_toolchain::Deps/Exec[/usr/bin/wget 
https://launchpad.net/ubuntu/+archive/primary/+files/libprotoc8_2.5.0-9ubuntu1_amd64.deb]/returns:
 executed successfully
notice: Finished catalog run in 162.71 seconds
bash-4.1#

------------------

> bigtop_toolchain hardcode the apache mirror sites for downloading maven
> -----------------------------------------------------------------------
>
>                 Key: BIGTOP-1488
>                 URL: https://issues.apache.org/jira/browse/BIGTOP-1488
>             Project: Bigtop
>          Issue Type: Bug
>          Components: build, general
>    Affects Versions: 0.8.0
>            Reporter: stanley shi
>            Assignee: Newton Alex
>         Attachments: BIGTOP-1488.v1.patch, BIGTOP-1488.v2.patch
>
>
> In the bigtop_toolchain module, the puppet modules use hardcoded apache 
> mirror sites to download component tar balls(for example, use 
> ftp://mirror.reverse.net/pub/apache/maven/maven-3/3.0.5/binaries/apache-maven-3.0.5-bin.tar.gz
>  to download maven).
> In some cases the hardcoded mirror maybe very slow, causing the installation 
> to be very slow or even fail.
> We can use the "www.apache.org/dyn/closer.cgi" to choose apache mirrors 
> automatically and faster the installatin.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to