2016-04-28 60 views
2

我正在尝试使用aws cli启动EMR群集。有两种方法可以在aws cli中进行引导操作。如何使用aws cli指定多个引导操作?

  1. 使用JSON,这是我目前使用的,但它变得非常混乱,因为这一切都是在bash脚本及其难以格式化JSON

  2. 使用他们的命令列表

从他们的网站:

--bootstrap-actions (list) 

简写语法:

Path=string,Args=string,string,Name=string ... 

我能够拿到1个引导作用这样的方式,但是当我尝试添加第二个,它只是执行不管我列出最后

例如:

Path=string,Args=string,string,Name=string,Path=string2,Args=string2,Name=string2 

只有string2被执行。有谁知道这适当的格式?

+0

为了澄清:你指的是亚马逊推出EMR集群

创建AWS CLI create-cluster文档的亚马逊EMR集群节时添加引导操作的列表? –

+0

是的,我只是对该帖子进行了编辑以获得更多清晰度。不知道为什么这是越来越投票,但... – Instinct

+0

Downvotes可能是因为它比软件开发(StackOverflow)更多的系统管理(ServerFault)。 –

回答

3

看来他们应该是以空格分开

aws emr create-cluster --bootstrap-actions Path=s3://mybucket/myscript1,Name=BootstrapAction1,Args=[arg1,arg2] Path=s3://mybucket/myscript2,Name=BootstrapAction2,Args=[arg1,arg2] --release-label emr-4.0.0 --instance-groups InstanceGroupType=MASTER,InstanceCount=1,InstanceType=m3.xlarge InstanceGroupType=CORE,InstanceCount=2,InstanceType=m3.xlarge --auto-terminate 
+0

我没有在您链接的页面上看到该部分,但我会试试这个。非常感谢你! – Instinct

+0

哎呀!我有错误的链接。现在更新指向这个例子。 –