通过aws emr cli传递配置单元配置

zf9nrax1  于 2021-06-28  发布在  Hive
关注(0)|答案(1)|浏览(266)

我在看医生:http://docs.aws.amazon.com/elasticmapreduce/latest/releaseguide/emr-dev-create-metastore-outside.html 并尝试使用awscli==1.10.38创建emr集群。
我使用文档中提到的以下命令:

aws emr create-cluster --release-label emr-5.0.0 --instance-type m3.xlarge --instance-count 2 \
--applications Name=Hive --configurations ./hiveConfiguration.json --use-default-roles

我还使用与文档中提到的完全相同的hiveconfiguration.json。
但是它说“aws:error:option--configurations的json参数无效”
为什么我会出错?

5lwkijsr

5lwkijsr1#

你的论点 --configurations 不正确。缺少file://cli需要知道您正在指定文件或s3对象。

aws emr create-cluster --configurations file://hiveConfiguration.json

相关问题