【发布时间】: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