Skip Menu |

This queue is for tickets about the Net-Amazon-EMR CPAN distribution.

Report information
The Basics
Id: 88197
Status: resolved
Priority: 0/
Queue: Net-Amazon-EMR

People
Owner: Nobody in particular
Requestors: keeyonghan [...] hotmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: How to access non-east region with Net::Amazon::EMR
Date: Tue, 27 Aug 2013 22:38:42 -0700
To: "bug-Net-Amazon-EMR [...] rt.cpan.org" <bug-net-amazon-emr [...] rt.cpan.org>
From: keeyong han <keeyonghan [...] hotmail.com>
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
Subject: Re: [rt.cpan.org #88197] How to access non-east region with Net::Amazon::EMR
Date: Wed, 28 Aug 2013 15:15:59 +0930
To: bug-Net-Amazon-EMR [...] rt.cpan.org
From: Jon Schutz <jon.schutz [...] youramigo.com>
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
Subject: RE: [rt.cpan.org #88197] How to access non-east region with Net::Amazon::EMR
Date: Tue, 27 Aug 2013 22:50:51 -0700
To: "bug-Net-Amazon-EMR [...] rt.cpan.org" <bug-net-amazon-emr [...] rt.cpan.org>
From: keeyong han <keeyonghan [...] hotmail.com>
Thanks for quick response. I had tried that and got the following error: Error response for action RunJobFlow: Sender/ValidationError; Specified Availability Zone is not supported I tried "us-west-2a" and "us-west-2b" but to no avail. Based on my search, it looks like connection needs to be made to us-west-2 first (what they call endpoint) and I feel like that needs to be in the new method of the module? Thanks again! -Keeyong Show quoted text
> Subject: Re: [rt.cpan.org #88197] How to access non-east region with Net::Amazon::EMR > From: bug-Net-Amazon-EMR@rt.cpan.org > To: keeyonghan@hotmail.com > Date: Wed, 28 Aug 2013 01:46:19 -0400 > > <URL: https://rt.cpan.org/Ticket/Display.html?id=88197 > > > > On 28/08/13 15:08, keeyong han via RT wrote:
> > 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 > >
Subject: Re: [rt.cpan.org #88197] How to access non-east region with Net::Amazon::EMR
Date: Wed, 28 Aug 2013 15:28:41 +0930
To: bug-Net-Amazon-EMR [...] rt.cpan.org
From: Jon Schutz <jon.schutz [...] youramigo.com>
I see, I hadn't appreciated that subtlety. Try creating the EMR instance like this: my $emr = Net::Amazon::EMR->new( AWSAccessKeyId => $AWS_ACCESS_KEY_ID, SecretAccessKey => $SECRET_ACCESS_KEY, base_url => 'https://elasticmapreduce.us-west-2.amazonaws.com', ); On 28/08/13 15:21, keeyong han via RT wrote: Show quoted text
> Queue: Net-Amazon-EMR > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=88197 > > > Thanks for quick response. I had tried that and got the following error: > > Error response for action RunJobFlow: Sender/ValidationError; Specified Availability Zone is not supported > > I tried "us-west-2a" and "us-west-2b" but to no avail. > > Based on my search, it looks like connection needs to be made to us-west-2 first (what they call endpoint) and I feel like that needs to be in the new method of the module? > > Thanks again! > -Keeyong >
>> Subject: Re: [rt.cpan.org #88197] How to access non-east region with Net::Amazon::EMR >> From: bug-Net-Amazon-EMR@rt.cpan.org >> To: keeyonghan@hotmail.com >> Date: Wed, 28 Aug 2013 01:46:19 -0400 >> >> <URL: https://rt.cpan.org/Ticket/Display.html?id=88197 > >> >> >> On 28/08/13 15:08, keeyong han via RT wrote:
>>> 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 >> >>
>
-- Jon Schutz CTO, YourAmigo Ltd 53 Gilbert St Adelaide SA 5000 Ph: +61 8 82119211 Fax: +61 8 8211 6356 http://www.youramigo.com
Subject: RE: [rt.cpan.org #88197] How to access non-east region with Net::Amazon::EMR
Date: Tue, 27 Aug 2013 23:13:09 -0700
To: "bug-Net-Amazon-EMR [...] rt.cpan.org" <bug-net-amazon-emr [...] rt.cpan.org>
From: keeyong han <keeyonghan [...] hotmail.com>
Thanks, it worked! -Keeyong Show quoted text
> Subject: Re: [rt.cpan.org #88197] How to access non-east region with Net::Amazon::EMR > From: bug-Net-Amazon-EMR@rt.cpan.org > To: keeyonghan@hotmail.com > Date: Wed, 28 Aug 2013 01:59:00 -0400 > > <URL: https://rt.cpan.org/Ticket/Display.html?id=88197 > > > I see, I hadn't appreciated that subtlety. Try creating the EMR > instance like this: > > my $emr = Net::Amazon::EMR->new( > AWSAccessKeyId => $AWS_ACCESS_KEY_ID, > SecretAccessKey => $SECRET_ACCESS_KEY, > base_url => 'https://elasticmapreduce.us-west-2.amazonaws.com', > ); > > > On 28/08/13 15:21, keeyong han via RT wrote:
> > Queue: Net-Amazon-EMR > > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=88197 > > > > > Thanks for quick response. I had tried that and got the following error: > > > > Error response for action RunJobFlow: Sender/ValidationError; Specified Availability Zone is not supported > > > > I tried "us-west-2a" and "us-west-2b" but to no avail. > > > > Based on my search, it looks like connection needs to be made to us-west-2 first (what they call endpoint) and I feel like that needs to be in the new method of the module? > > > > Thanks again! > > -Keeyong > >
> >> Subject: Re: [rt.cpan.org #88197] How to access non-east region with Net::Amazon::EMR > >> From: bug-Net-Amazon-EMR@rt.cpan.org > >> To: keeyonghan@hotmail.com > >> Date: Wed, 28 Aug 2013 01:46:19 -0400 > >> > >> <URL: https://rt.cpan.org/Ticket/Display.html?id=88197 > > >> > >> > >> On 28/08/13 15:08, keeyong han via RT wrote:
> >>> 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 > >> > >>
> >
> > -- > Jon Schutz > CTO, YourAmigo Ltd > 53 Gilbert St > Adelaide SA 5000 > Ph: +61 8 82119211 > Fax: +61 8 8211 6356 > http://www.youramigo.com > >