首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >AWS-CLI -EC2属性错误

AWS-CLI -EC2属性错误
EN

Stack Overflow用户
提问于 2018-03-22 19:23:39
回答 1查看 178关注 0票数 0

我正在尝试与我的EMR集群中的S3存储桶中的对象交互(我正在尝试ffmpeg位于s3://$mybucket/的视频/我发现我必须添加一个角色并使用这些角色创建我的集群,我的代码如下所示:

EMR_CLUSTER_CREATION=$(aws emr create-cluster --name $cluster_name --release-label emr-5.4.0 --log-uri s3://$bucket_name/myLogs --applications Name=Hive Name=Pig \ --service-role Proton-Test \ --ec2-attributes KeyName=$ec2_key, InstanceProfile=Proton-Test --instance-groups InstanceGroupType=MASTER,InstanceCount=1,InstanceType=m3.xlarge InstanceGroupType=CORE,InstanceCount=2,InstanceType=m3.xlarge) echo "$EMR_CLUSTER_CREATION"

但是我得到了这个错误:

Error parsing parameter '--ec2-attributes': Expected: '<second>', received: '<none>' for input: KeyName=devenv-key, ^

提前感谢!

亚历克斯

EN

回答 1

Stack Overflow用户

发布于 2018-03-22 19:50:17

多亏了Sudharsan Sivasankaran,问题出在synthax上!

EMR_CLUSTER_CREATION=$(aws emr create-cluster --name $cluster_name --release-label emr-5.4.0 --log-uri s3://$bucket_name/myLogs --applications Name=Hive Name=Pig \ --service-role Proton-Test \ --ec2-attributes KeyName=$ec2_key,InstanceProfile=Proton-Test --instance-groups InstanceGroupType=MASTER,InstanceCount=1,InstanceType=m3.xlarge InstanceGroupType=CORE,InstanceCount=2,InstanceType=m3.xlarge) echo "$EMR_CLUSTER_CREATION"

现在正在工作,集群已创建并正在工作!

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/49427402

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档