【发布时间】:2020-02-19 00:44:03
【问题描述】:
我正在使用 AWS 的 CLI 创建集群并使用 json 文件中的参数。这是我使用的 CLI 命令字符串:
aws emr create-cluster --name "Big Matrix Re Run 1" --ami-version 3.1.0 --steps file://Segmentgroup1.json --release-label --instance-groups InstanceGroupType=MASTER,InstanceCount=1,InstanceType=m3.xlarge InstanceGroupType=CORE,InstanceCount=2,InstanceType=m3.xlarge --auto-terminate
我的 json 文件 (Segmentgroup1.json) 位于我从中运行 AWS 命令字符串的同一文件夹中,但我不断收到以下错误:
No JSON object could be decoded
根据我发现它没有找到 json 文件。有什么想法吗?
【问题讨论】:
-
您是否认真检查过 JSON 文件的有效性,例如jsonlint.com
-
看起来可能是这样......奇怪的是它在我的另一台机器上工作,但不是我的 mac。
标签: amazon-web-services aws-cli amazon-emr