You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@whirr.apache.org by Andrii Vozniuk <an...@vozniuk.com> on 2012/05/29 01:28:45 UTC

Java is missing

Hi guys,

Three days ago I was successfully deploying my Hadoop cluster on Amazon EC2
with whirr. Now java is not being installed automatically. I'm using  code
from the trunk.

What has happened in the recent days? Should I install Java manually on
every machine? What are other possible solutions?

-- 
Best regards
Andrii Vozniuk

Re: Java is missing

Posted by Andrei Savu <sa...@gmail.com>.
Thanks Adrian! I have created an issue and added your comment:

https://issues.apache.org/jira/browse/WHIRR-593

On Tue, May 29, 2012 at 6:47 PM, Adrian Cole <ad...@jclouds.org> wrote:

> Jclouds 1.5 has a concept called TemplateBuilderSpec which allows you to
> declare a String representation of TemplateBuilder mechanics.
>
> This allows you to set a property to override the default templates used in
> jclouds.
>
> For ex.
>
> aws-ec2.template=imageId=ami-foo,hardwareId=m1.large,locationId=eu-west-1
>
> Importantly, these are just strings, so you can publish a series per
> operating system family, and choose at runtime with
> templateBuilder.from(spec)
>
> Ex. You can make your own Map<String, TemplateBuilderSpec> with your
> favorite choices, perhaps locking in templates by id so you don't have to
> maintain the brittle java install scripts.
>
> Ex.
>
> templates.get("oneiric-java-ec2");
>
> Regardless of how this is used, the important part is that the constant
> complaints of automatic selection can now be over, as we can provide a
> properties syntax to afford users a means to supply their preferences
> declaratively.
>
> I hope this helps,
> -A
> On May 29, 2012 5:39 AM, "Andrei Savu" <sa...@gmail.com> wrote:
>
> > Good to know. I guess we have yet another issue we need to fix related to
> > automatic AMI selection.
> > On May 29, 2012 3:35 PM, "Andrii Vozniuk" <an...@vozniuk.com> wrote:
> >
> > > Thanks Andrei,
> > >
> > > I suspect there is something strange happening with the Ubuntu
> > > > repositories. Try
> > > > setting the AMI ID.
> > > >
> > >
> > > using whirr.image-id=us-east-1/ami-da0cf8b3 for Ubuntu 10.04 LTS worked
> > for
> > > me.
> > >
> > > --
> > > Best regards
> > > Andrii Vozniuk
> > >
> >
>

Re: Java is missing

Posted by Adrian Cole <ad...@jclouds.org>.
Jclouds 1.5 has a concept called TemplateBuilderSpec which allows you to
declare a String representation of TemplateBuilder mechanics.

This allows you to set a property to override the default templates used in
jclouds.

For ex.

aws-ec2.template=imageId=ami-foo,hardwareId=m1.large,locationId=eu-west-1

Importantly, these are just strings, so you can publish a series per
operating system family, and choose at runtime with
templateBuilder.from(spec)

Ex. You can make your own Map<String, TemplateBuilderSpec> with your
favorite choices, perhaps locking in templates by id so you don't have to
maintain the brittle java install scripts.

Ex.

templates.get("oneiric-java-ec2");

Regardless of how this is used, the important part is that the constant
complaints of automatic selection can now be over, as we can provide a
properties syntax to afford users a means to supply their preferences
declaratively.

I hope this helps,
-A
On May 29, 2012 5:39 AM, "Andrei Savu" <sa...@gmail.com> wrote:

> Good to know. I guess we have yet another issue we need to fix related to
> automatic AMI selection.
> On May 29, 2012 3:35 PM, "Andrii Vozniuk" <an...@vozniuk.com> wrote:
>
> > Thanks Andrei,
> >
> > I suspect there is something strange happening with the Ubuntu
> > > repositories. Try
> > > setting the AMI ID.
> > >
> >
> > using whirr.image-id=us-east-1/ami-da0cf8b3 for Ubuntu 10.04 LTS worked
> for
> > me.
> >
> > --
> > Best regards
> > Andrii Vozniuk
> >
>

Re: Java is missing

Posted by Andrei Savu <sa...@gmail.com>.
Good to know. I guess we have yet another issue we need to fix related to
automatic AMI selection.
On May 29, 2012 3:35 PM, "Andrii Vozniuk" <an...@vozniuk.com> wrote:

> Thanks Andrei,
>
> I suspect there is something strange happening with the Ubuntu
> > repositories. Try
> > setting the AMI ID.
> >
>
> using whirr.image-id=us-east-1/ami-da0cf8b3 for Ubuntu 10.04 LTS worked for
> me.
>
> --
> Best regards
> Andrii Vozniuk
>

Re: Java is missing

Posted by Andrii Vozniuk <an...@vozniuk.com>.
Thanks Andrei,

I suspect there is something strange happening with the Ubuntu
> repositories. Try
> setting the AMI ID.
>

using whirr.image-id=us-east-1/ami-da0cf8b3 for Ubuntu 10.04 LTS worked for
me.

-- 
Best regards
Andrii Vozniuk

Re: Java is missing

Posted by Andrei Savu <sa...@gmail.com>.
On Tue, May 29, 2012 at 2:28 AM, Andrii Vozniuk <an...@vozniuk.com> wrote:

> What has happened in the recent days? Should I install Java manually on
> every machine? What are other possible solutions?
>

I suspect there is something strange happening with the Ubuntu
repositories. Try
setting the AMI ID.

I'm running the same experiment now.

It seems like this is happening only with trunk. Unreleased version 0.7.2
works fine.