[英]AWS-CLI - Error with ec2-attributes
我試圖與我的EMR群集中的S3存儲桶中的對象進行交互(我嘗試對位於s3:// $ mybucket /中的視頻進行ffmpeg處理,我發現我必須添加一個角色並使用這些對象創建群集角色,我的代碼如下所示:
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, ^
提前致謝 !
亞歷克斯
由於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"
現在正在工作,集群已創建並且正在工作!
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.