On 28/08/13 15:08, keeyong han via RT wrote:
Show quoted text> Wed Aug 28 01:38:55 2013: Request 88197 was acted upon.
> Transaction: Ticket created by keeyonghan@hotmail.com
> Queue: Net-Amazon-EMR
> Subject: How to access non-east region with Net::Amazon::EMR
> Broken in: (no value)
> Severity: (no value)
> Owner: Nobody
> Requestors: keeyonghan@hotmail.com
> Status: new
> Ticket <URL:
https://rt.cpan.org/Ticket/Display.html?id=88197 >
>
>
> Hi there,
>
> I found this module and tried to use it. One problem I am having is that I can get this work with us-west-2 region at all and it seems like that's because Net::Amazon::EMR connects to us-east region by default. I couldn't find how to change that in the module.
>
> Would you enlighten me how to do that? Or if it is missing, would you support that in a reasonable time? Or please point me to where in the code I can change that?
>
> Thanks,
> -Keeyong
>
Should work using the AvailabilityZone parameter like this:
$emr->run_job_flow(Name => "API Test Job",
Instances => {
Ec2KeyName => 'xxx',
InstanceCount => 1,
Placement => {
AvailabilityZone => 'us-west-2'
},
},
);
Here's the ref doc:
http://docs.aws.amazon.com/ElasticMapReduce/latest/API/API_JobFlowInstancesConfig.html
http://docs.aws.amazon.com/ElasticMapReduce/latest/API/API_PlacementType.html
--
Jon Schutz
CTO, YourAmigo Ltd
53 Gilbert St
Adelaide SA 5000
Ph: +61 8 82119211
Fax: +61 8 8211 6356
http://www.youramigo.com