You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@bigtop.apache.org by Ruijing Guo <rg...@pivotal.io> on 2014/11/07 10:55:51 UTC

Question about Howto install JDK in bigtop

Why I cannot install JDK by puppet?


[guor4@localhost bigtop]$ sudo puppet apply --modulepath=. -e "include
bigtop_toolchain::jdk6"
err:
/Stage[main]/Bigtop_toolchain::Jdk6/File[/tmp/jdk-6u45-linux-amd64.rpm]:
Could not evaluate: Could not retrieve information from environment
production source(s)
puppet:///modules/bigtop_toolchain/jdk-6u45-linux-amd64.rpm at
/mnt/hgfs/Shared/bigtop/bigtop_toolchain/manifests/jdk6.pp:72
notice: /Stage[main]/Bigtop_toolchain::Jdk6/Exec[/bin/rpm -Uvh
/tmp/jdk-6u45-linux-amd64.rpm]: Dependency
File[/tmp/jdk-6u45-linux-amd64.rpm] has failures: true
warning: /Stage[main]/Bigtop_toolchain::Jdk6/Exec[/bin/rpm -Uvh
/tmp/jdk-6u45-linux-amd64.rpm]: Skipping because of failed dependencies
notice: Finished catalog run in 0.03 seconds
[guor4@localhost bigtop]$ sudo puppet apply --modulepath=. -e "include
bigtop_toolchain::jdk"
err: /Stage[main]/Bigtop_toolchain::Jdk/File[/tmp/jdk-7u60-linux-x64.gz]:
Could not evaluate: Could not retrieve information from environment
production source(s)
puppet:///modules/bigtop_toolchain/jdk-7u60-linux-x64.gz at
/mnt/hgfs/Shared/bigtop/bigtop_toolchain/manifests/jdk.pp:23
notice: /Stage[main]/Bigtop_toolchain::Jdk/Exec[/bin/tar -xzvf
/tmp/jdk-7u60-linux-x64.gz; ln -s jdk1.7.0_60 jdk7-latest]: Dependency
File[/tmp/jdk-7u60-linux-x64.gz] has failures: true
warning: /Stage[main]/Bigtop_toolchain::Jdk/Exec[/bin/tar -xzvf
/tmp/jdk-7u60-linux-x64.gz; ln -s jdk1.7.0_60 jdk7-latest]: Skipping
because of failed dependencies
notice: Finished catalog run in 0.03 seconds

-- 
Thanks,
-Ruijing

Re: Question about Howto install JDK in bigtop

Posted by Roman Shaposhnik <ro...@shaposhnik.org>.
On Sun, Nov 9, 2014 at 11:59 PM, Ruijing Guo <rg...@pivotal.io> wrote:
> README writes that "For RedHat/Centos, due to redistribution restrictions
> the Oracle JDK must be downloaded seperately."
>
> Can we use openJDK as bigtop default so that we can automate all build?

In theory: yes. In practice it makes everything *very* inconvenient,
since OpenJDK
packaging tends to pull bejilion of packages and every distro comes with its own
OpenJDK version. I have no problem whatsoever for OpenJDK to be the thing that
we use for Bigtop deployment, but for builds -- I'd rather have our build infra
as efficient as possible.

That said, I'd love to know what others think.

Thanks,
Roman.

Re: Question about Howto install JDK in bigtop

Posted by Ruijing Guo <rg...@pivotal.io>.
README writes that "For RedHat/Centos, due to redistribution restrictions
the Oracle JDK must be downloaded seperately."

Can we use openJDK as bigtop default so that we can automate all build?

On Sat, Nov 8, 2014 at 7:42 PM, Roman Shaposhnik <ro...@shaposhnik.org>
wrote:

> consult the README -- the files with JDK tarbal need to be in files/
>
> On Fri, Nov 7, 2014 at 1:55 AM, Ruijing Guo <rg...@pivotal.io> wrote:
> > Why I cannot install JDK by puppet?
> >
> >
> > [guor4@localhost bigtop]$ sudo puppet apply --modulepath=. -e "include
> > bigtop_toolchain::jdk6"
> > err:
> > /Stage[main]/Bigtop_toolchain::Jdk6/File[/tmp/jdk-6u45-linux-amd64.rpm]:
> > Could not evaluate: Could not retrieve information from environment
> > production source(s)
> > puppet:///modules/bigtop_toolchain/jdk-6u45-linux-amd64.rpm at
> > /mnt/hgfs/Shared/bigtop/bigtop_toolchain/manifests/jdk6.pp:72
> > notice: /Stage[main]/Bigtop_toolchain::Jdk6/Exec[/bin/rpm -Uvh
> > /tmp/jdk-6u45-linux-amd64.rpm]: Dependency
> > File[/tmp/jdk-6u45-linux-amd64.rpm] has failures: true
> > warning: /Stage[main]/Bigtop_toolchain::Jdk6/Exec[/bin/rpm -Uvh
> > /tmp/jdk-6u45-linux-amd64.rpm]: Skipping because of failed dependencies
> > notice: Finished catalog run in 0.03 seconds
> > [guor4@localhost bigtop]$ sudo puppet apply --modulepath=. -e "include
> > bigtop_toolchain::jdk"
> > err: /Stage[main]/Bigtop_toolchain::Jdk/File[/tmp/jdk-7u60-linux-x64.gz]:
> > Could not evaluate: Could not retrieve information from environment
> > production source(s)
> > puppet:///modules/bigtop_toolchain/jdk-7u60-linux-x64.gz at
> > /mnt/hgfs/Shared/bigtop/bigtop_toolchain/manifests/jdk.pp:23
> > notice: /Stage[main]/Bigtop_toolchain::Jdk/Exec[/bin/tar -xzvf
> > /tmp/jdk-7u60-linux-x64.gz; ln -s jdk1.7.0_60 jdk7-latest]: Dependency
> > File[/tmp/jdk-7u60-linux-x64.gz] has failures: true
> > warning: /Stage[main]/Bigtop_toolchain::Jdk/Exec[/bin/tar -xzvf
> > /tmp/jdk-7u60-linux-x64.gz; ln -s jdk1.7.0_60 jdk7-latest]: Skipping
> > because of failed dependencies
> > notice: Finished catalog run in 0.03 seconds
> >
> > --
> > Thanks,
> > -Ruijing
>



-- 
Thanks,
-Ruijing

Re: Question about Howto install JDK in bigtop

Posted by Roman Shaposhnik <ro...@shaposhnik.org>.
consult the README -- the files with JDK tarbal need to be in files/

On Fri, Nov 7, 2014 at 1:55 AM, Ruijing Guo <rg...@pivotal.io> wrote:
> Why I cannot install JDK by puppet?
>
>
> [guor4@localhost bigtop]$ sudo puppet apply --modulepath=. -e "include
> bigtop_toolchain::jdk6"
> err:
> /Stage[main]/Bigtop_toolchain::Jdk6/File[/tmp/jdk-6u45-linux-amd64.rpm]:
> Could not evaluate: Could not retrieve information from environment
> production source(s)
> puppet:///modules/bigtop_toolchain/jdk-6u45-linux-amd64.rpm at
> /mnt/hgfs/Shared/bigtop/bigtop_toolchain/manifests/jdk6.pp:72
> notice: /Stage[main]/Bigtop_toolchain::Jdk6/Exec[/bin/rpm -Uvh
> /tmp/jdk-6u45-linux-amd64.rpm]: Dependency
> File[/tmp/jdk-6u45-linux-amd64.rpm] has failures: true
> warning: /Stage[main]/Bigtop_toolchain::Jdk6/Exec[/bin/rpm -Uvh
> /tmp/jdk-6u45-linux-amd64.rpm]: Skipping because of failed dependencies
> notice: Finished catalog run in 0.03 seconds
> [guor4@localhost bigtop]$ sudo puppet apply --modulepath=. -e "include
> bigtop_toolchain::jdk"
> err: /Stage[main]/Bigtop_toolchain::Jdk/File[/tmp/jdk-7u60-linux-x64.gz]:
> Could not evaluate: Could not retrieve information from environment
> production source(s)
> puppet:///modules/bigtop_toolchain/jdk-7u60-linux-x64.gz at
> /mnt/hgfs/Shared/bigtop/bigtop_toolchain/manifests/jdk.pp:23
> notice: /Stage[main]/Bigtop_toolchain::Jdk/Exec[/bin/tar -xzvf
> /tmp/jdk-7u60-linux-x64.gz; ln -s jdk1.7.0_60 jdk7-latest]: Dependency
> File[/tmp/jdk-7u60-linux-x64.gz] has failures: true
> warning: /Stage[main]/Bigtop_toolchain::Jdk/Exec[/bin/tar -xzvf
> /tmp/jdk-7u60-linux-x64.gz; ln -s jdk1.7.0_60 jdk7-latest]: Skipping
> because of failed dependencies
> notice: Finished catalog run in 0.03 seconds
>
> --
> Thanks,
> -Ruijing