我正在尝试与我的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, ^
提前感谢!
亚历克斯
发布于 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"
现在正在工作,集群已创建并正在工作!
https://stackoverflow.com/questions/49427402
复制相似问题