Wednesday, 15 August 2012

amazon ec2 - Apache Whirr on EC2 with custom AMI -



amazon ec2 - Apache Whirr on EC2 with custom AMI -

i trying launch cluster of custom ami images. ami image ubunutu 12.04 server image amazon free tier selection java installed (i want create ami numpy , scipy). in fact, created image launching ubuntu 12.04 instance whirr , noop role. installed java, , in aws online console selected create image (ebs ami). using same whirr recipe script used launch original ubuntu server image-id changed.

whirr launches image, shows in console. tries run initscript noop , nil happens. after 10min throws exception caused script running long. whirr.log containts record

error acquiring sftpclient() (out of retries - max 7): invalid packet: indicated length 1349281121 big

i saw error mentioned in 1 of tutorials, suggested solution add together line

whirr.bootstrap-user=ec2-user

to allow jcloud know username. know right username , used default anyway. after adding line, whirr.log shows authentification error, problem public key. finally, when utilize 'ubuntu' user, error dying because - java.net.sockettimeoutexception: read timed out

here's file utilize launch cluster

whirr.cluster-name=pineapple whirr.instance-templates=1 noop whirr.provider=aws-ec2 whirr.identity=${env:aws_access_key_id} whirr.credential=${env:aws_secret_access_key} whirr.private-key-file=${sys:user.home}/.ssh/id_rsa whirr.public-key-file=${sys:user.home}/.ssh/id_rsa.pub whirr.env.repo=cdh4 whirr.hardware-id=t1.micro whirr.image-id=us-east-1/ami-224cda4b whirr.image-location=us-east-1b

the exception log help solve problem.

also, setting next may solve issue.

whirr.cluster-user=<clu>

amazon-ec2 ami apache-whirr

No comments:

Post a Comment