【问题标题】:AWS-CLI - Error with ec2-attributesAWS-CLI - ec2-attributes 错误
【发布时间】:2018-03-22 19:50:17
【问题描述】:

我正在尝试与我的 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, ^

提前致谢!

亚历克斯

【问题讨论】:

  • 我猜应该没有空格。 KeyName=$ec2_key,InstanceProfile=Proton-Test
  • 天啊....谢谢老兄

标签: bash amazon-web-services amazon-s3 amazon-ec2 aws-cli


【解决方案1】:

问题出在合成器上,感谢 Sudharsan Sivasankaran!

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"

现在正在运行,集群已创建并正在运行!

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-10-18
    • 2017-03-16
    • 2018-11-15
    • 2013-12-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多