Skip Menu |

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

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

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

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



Subject: Net::Amazon::EMR - error in running
Date: Sun, 9 Mar 2014 22:53:55 -0500
To: "bug-Net-Amazon-EMR [...] rt.cpan.org" <bug-net-amazon-emr [...] rt.cpan.org>
From: deepak 10000 <deepak10000 [...] hotmail.com>
Hi, I am using perl on windows and have installed Net::Amazon::EMR through Active State's ppm. Below is my env and a sample script and error that I'm getting. Any help to get it resolved is truly appreciated. Environment Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. All rights reserved. perl -v This is perl 5, version 16, subversion 3 (v5.16.3) built for MSWin32-x64-multi-thread (with 1 registered patch, see perl -V for more detail) Copyright 1987-2012, Larry Wall Binary build 1603 [296746] provided by ActiveState http://www.ActiveState.com Built Mar 13 2013 13:31:10 Sample Script (I have removed the credentials and replaced it with xxxxx, yyyyyyy use Net::Amazon::EMR; my $emr = Net::Amazon::EMR->new( AWSAccessKeyId => 'xxxxxx', SecretAccessKey => 'yyyyyyy', ssl => 1, ); $result = $emr->describe_job_flows(CreatedAfter => '2014-01-17T07:19:57Z'); Expected to see a list of clusters in EMR. Ideally, I want to be able to do the following see a list of clusters and then get details a specific cluster including download logs of each process step of a specified cluster. http://docs.aws.amazon.com/ElasticMapReduce/latest/DeveloperGuide/emr-manage-view-cluster-details.html Error message Attribute (Args) does not pass the type constraint because: Validation failed for 'Net::Amazon::EMR::Type::ArrayRefofStr |Undef' with value HASH(0xc985998) at constructor Net::Amazon::EMR::HadoopJarStepConfig::new (defined at C:/Perl64/site/ lib/Net/Amazon/EMR/HadoopJarStepConfig.pm line 22) line 35. Net::Amazon::EMR::HadoopJarStepConfig::new('Net::Amazon::EMR::HadoopJarStepConfig', 'HASH(0xc984748)') called at (eval 311) line 3 Net::Amazon::EMR::Coercions::__ANON__('HASH(0xc984748)') called at C:/Perl64/lib/Moose/Meta/TypeCoercion.pm line 68 Moose::Meta::TypeCoercion::__ANON__('HASH(0xc984748)') called at constructor Net::Amazon::EMR::StepConfig::new ( defined at C:/Perl64/site/lib/Net/Amazon/EMR/StepConfig.pm line 18) line 38 Net::Amazon::EMR::StepConfig::new('Net::Amazon::EMR::StepConfig', 'HASH(0xc985098)') called at (eval 395) line 3 Net::Amazon::EMR::Coercions::__ANON__('HASH(0xc985098)') called at C:/Perl64/lib/Moose/Meta/TypeCoercion.pm line 68 Moose::Meta::TypeCoercion::__ANON__('HASH(0xc985098)') called at constructor Net::Amazon::EMR::StepDetail::new ( defined at C:/Perl64/site/lib/Net/Amazon/EMR/StepDetail.pm line 16) line 42 Net::Amazon::EMR::StepDetail::new('Net::Amazon::EMR::StepDetail', 'HASH(0xc982620)') called at (eval 400) line 3 Net::Amazon::EMR::Coercions::__ANON__('HASH(0xc97f758)') called at C:/Perl64/lib/Moose/Meta/TypeCoercion.pm line 68 Moose::Meta::TypeCoercion::__ANON__('HASH(0xc97f758)') called at C:/Perl64/lib/Moose/Meta/TypeCoercion.pm line 1 02 Moose::Meta::TypeCoercion::coerce('Moose::Meta::TypeCoercion=HASH(0x44e6908)', 'HASH(0xc97f758)') called at C:/P erl64/lib/Moose/Meta/TypeConstraint.pm line 165 Moose::Meta::TypeConstraint::coerce('Moose::Meta::TypeConstraint::Parameterizable=HASH(0x44e62d0)', 'HASH(0xc97f 758)') called at C:/Perl64/lib/Moose/Meta/TypeCoercion/Union.pm line 32 Moose::Meta::TypeCoercion::Union::__ANON__('HASH(0xc97f758)') called at constructor Net::Amazon::EMR::JobFlowDet ail::new (defined at C:/Perl64/site/lib/Net/Amazon/EMR/JobFlowDetail.pm line 36) line 92 Net::Amazon::EMR::JobFlowDetail::new('Net::Amazon::EMR::JobFlowDetail', 'HASH(0xc9278c0)') called at (eval 337) line 3 Net::Amazon::EMR::Coercions::__ANON__('HASH(0x62459e0)') called at C:/Perl64/lib/Moose/Meta/TypeCoercion.pm line 68 Moose::Meta::TypeCoercion::__ANON__('HASH(0x62459e0)') called at constructor Net::Amazon::EMR::DescribeJobFlowsR esult::new (defined at C:/Perl64/site/lib/Net/Amazon/EMR/DescribeJobFlowsResult.pm line 9) line 31 Net::Amazon::EMR::DescribeJobFlowsResult::new('Net::Amazon::EMR::DescribeJobFlowsResult', 'HASH(0x6244e88)') cal led at C:/Perl64/site/lib/Net/Amazon/EMR.pm line 252 Net::Amazon::EMR::describe_job_flows(undef, 'CreatedAfter', '2014-01-17T07:19:57Z') called at C:\Users\deepprab\ Documents\unit_tests\ex_emr_list.pl line 19
Subject: Re: [rt.cpan.org #93695] Net::Amazon::EMR - error in running
Date: Tue, 11 Mar 2014 11:22:44 +1030
To: bug-Net-Amazon-EMR [...] rt.cpan.org
From: Jon Schutz <jon.schutz [...] youramigo.com>
Hi deepak 10000, I don't have access to an Active State test environment and cannot reproduce this problem on Linux. Can you advise the versions of Net::Amazon::EMR and Moose that you have installed? It seems to be an issue of failed type coercion so we first need to confirm that we are working with the same versions of the relevant code. Regards, -- Jon Schutz CTO, YourAmigo Ltd 53 Gilbert St Adelaide SA 5000 Ph: +61 8 82119211 Fax: +61 8 8211 6356 http://www.youramigo.com On 10/03/14 14:24, deepak 10000 via RT wrote: Show quoted text
> Sun Mar 09 23:54:05 2014: Request 93695 was acted upon. > Transaction: Ticket created by deepak10000@hotmail.com > Queue: Net-Amazon-EMR > Subject: Net::Amazon::EMR - error in running > Broken in: (no value) > Severity: (no value) > Owner: Nobody > Requestors: deepak10000@hotmail.com > Status: new > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=93695 > > > > Hi, > > I am using perl on windows and have installed > > Net::Amazon::EMR > through Active State's ppm. Below is my env and a sample script and error that I'm getting. > Any help to get it resolved is truly appreciated. > > Environment > Microsoft Windows [Version 6.1.7601] > Copyright (c) 2009 Microsoft Corporation. All rights reserved. > > perl -v > > This is perl 5, version 16, subversion 3 (v5.16.3) built for MSWin32-x64-multi-thread > (with 1 registered patch, see perl -V for more detail) > > Copyright 1987-2012, Larry Wall > > Binary build 1603 [296746] provided by ActiveState http://www.ActiveState.com > Built Mar 13 2013 13:31:10 > > Sample Script (I have removed the credentials and replaced it with xxxxx, yyyyyyy > use Net::Amazon::EMR; > > my $emr = Net::Amazon::EMR->new( > AWSAccessKeyId => 'xxxxxx', > SecretAccessKey => 'yyyyyyy', > ssl => 1, > ); > > $result = $emr->describe_job_flows(CreatedAfter => '2014-01-17T07:19:57Z'); > > Expected to see a list of clusters in EMR. > Ideally, I want to be able to do the following > see a list of clusters and then get details a specific cluster including download logs of each process step of a specified cluster. > > http://docs.aws.amazon.com/ElasticMapReduce/latest/DeveloperGuide/emr-manage-view-cluster-details.html > > > > > Error message > > Attribute (Args) does not pass the type constraint because: Validation failed for 'Net::Amazon::EMR::Type::ArrayRefofStr > |Undef' with value HASH(0xc985998) at constructor Net::Amazon::EMR::HadoopJarStepConfig::new (defined at C:/Perl64/site/ > lib/Net/Amazon/EMR/HadoopJarStepConfig.pm line 22) line 35. > Net::Amazon::EMR::HadoopJarStepConfig::new('Net::Amazon::EMR::HadoopJarStepConfig', 'HASH(0xc984748)') called at > (eval 311) line 3 > Net::Amazon::EMR::Coercions::__ANON__('HASH(0xc984748)') called at C:/Perl64/lib/Moose/Meta/TypeCoercion.pm line > 68 > Moose::Meta::TypeCoercion::__ANON__('HASH(0xc984748)') called at constructor Net::Amazon::EMR::StepConfig::new ( > defined at C:/Perl64/site/lib/Net/Amazon/EMR/StepConfig.pm line 18) line 38 > Net::Amazon::EMR::StepConfig::new('Net::Amazon::EMR::StepConfig', 'HASH(0xc985098)') called at (eval 395) line 3 > > Net::Amazon::EMR::Coercions::__ANON__('HASH(0xc985098)') called at C:/Perl64/lib/Moose/Meta/TypeCoercion.pm line > 68 > Moose::Meta::TypeCoercion::__ANON__('HASH(0xc985098)') called at constructor Net::Amazon::EMR::StepDetail::new ( > defined at C:/Perl64/site/lib/Net/Amazon/EMR/StepDetail.pm line 16) line 42 > Net::Amazon::EMR::StepDetail::new('Net::Amazon::EMR::StepDetail', 'HASH(0xc982620)') called at (eval 400) line 3 > > Net::Amazon::EMR::Coercions::__ANON__('HASH(0xc97f758)') called at C:/Perl64/lib/Moose/Meta/TypeCoercion.pm line > 68 > Moose::Meta::TypeCoercion::__ANON__('HASH(0xc97f758)') called at C:/Perl64/lib/Moose/Meta/TypeCoercion.pm line 1 > 02 > Moose::Meta::TypeCoercion::coerce('Moose::Meta::TypeCoercion=HASH(0x44e6908)', 'HASH(0xc97f758)') called at C:/P > erl64/lib/Moose/Meta/TypeConstraint.pm line 165 > Moose::Meta::TypeConstraint::coerce('Moose::Meta::TypeConstraint::Parameterizable=HASH(0x44e62d0)', 'HASH(0xc97f > 758)') called at C:/Perl64/lib/Moose/Meta/TypeCoercion/Union.pm line 32 > Moose::Meta::TypeCoercion::Union::__ANON__('HASH(0xc97f758)') called at constructor Net::Amazon::EMR::JobFlowDet > ail::new (defined at C:/Perl64/site/lib/Net/Amazon/EMR/JobFlowDetail.pm line 36) line 92 > Net::Amazon::EMR::JobFlowDetail::new('Net::Amazon::EMR::JobFlowDetail', 'HASH(0xc9278c0)') called at (eval 337) > line 3 > Net::Amazon::EMR::Coercions::__ANON__('HASH(0x62459e0)') called at C:/Perl64/lib/Moose/Meta/TypeCoercion.pm line > 68 > Moose::Meta::TypeCoercion::__ANON__('HASH(0x62459e0)') called at constructor Net::Amazon::EMR::DescribeJobFlowsR > esult::new (defined at C:/Perl64/site/lib/Net/Amazon/EMR/DescribeJobFlowsResult.pm line 9) line 31 > Net::Amazon::EMR::DescribeJobFlowsResult::new('Net::Amazon::EMR::DescribeJobFlowsResult', 'HASH(0x6244e88)') cal > led at C:/Perl64/site/lib/Net/Amazon/EMR.pm line 252 > Net::Amazon::EMR::describe_job_flows(undef, 'CreatedAfter', '2014-01-17T07:19:57Z') called at C:\Users\deepprab\ > Documents\unit_tests\ex_emr_list.pl line 19 >