简体   繁体   English

使用托管扩展策略的 AWS EMR 上的验证错误

[英]Validation error on AWS EMR with managed scaling policy

I'm trying to use the new Managed Scaling Policy in AWS EMR through boto3 client with python.我正在尝试通过带有 python 的 boto3 客户端在 AWS EMR 中使用新的托管扩展策略。 My process reads the configurations from json file and, when running the cluster I get the following error:我的进程从 json 文件中读取配置,并且在运行集群时出现以下错误:

botocore.exceptions.ParamValidationError: Parameter validation failed:
Unknown parameter in input: "ManagedScalingPolicy", must be one of: Name, LogUri, AdditionalInfo, AmiVersion, ReleaseLabel, Instances, Steps, BootstrapActions, SupportedProducts, NewSupportedProducts, Applications, Configurations, VisibleToAllUsers, JobFlowRole, ServiceRole, Tags, SecurityConfiguration, AutoScalingRole, ScaleDownBehavior, CustomAmiId, EbsRootVolumeSize, RepoUpgradeOnBoot, KerberosAttributes, StepConcurrencyLevel

The managed scaling policy is in the root of json file.托管扩展策略位于 json 文件的根目录中。 The documentation of boto3 says that this is the correct place. boto3 的文档说这是正确的地方。

Where is the error?错误在哪里?

Question solved, It was a issue with boto3 version.问题解决了,是boto3版本的问题。 Updating boto3 with pip solved the problem.用 pip 更新 boto3 解决了这个问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM