mrjob error: DescribeJobFlows API is deprecated

mrjob error: DescribeJobFlows API is deprecated

我是第一次使用mrjob,尝试运行 EMR 上的基本字数统计代码。我按照 mrjob here 文档中的每一步操作,但仍然出现错误。

<ErrorResponse xmlns="http://elasticmapreduce.amazonaws.com/doc/2009-03-31">   <Error>
    <Type>Sender</Type>
    <Code>ValidationError</Code>
    <Message>DescribeJobFlows API is deprecated. Please refer to http://docs.aws .amazon.com/ElasticMapReduce/latest/API/API_DescribeJobFlows.html for further in formation</Message>   </Error>   <RequestId>e300f5b0-3396-11e5-b377-5b3cd3427dd8</RequestId> </ErrorResponse>

这是什么问题,我该如何解决?

命令行如下

python C:\Users\Administrator\MyIpython\word_count.py -r emr C:\Users\Administrator\MyIpython1.txt

我在 mrjob google 组 here 发现有人遇到同样的问题。这是否意味着 mrjob 在新版本发布之前无法运行?

是的,我相信 mrjob 的当前版本在下一个版本发布之前已经失效。该解决方案已经在开发中,并计划在下一个版本中使用。

一个直接的解决方案是 list-clusters 分支(大概会在下一个版本中与 master 合并):https://github.com/davidmarin/mrjob/tree/list-clusters

您需要从 github 克隆 mrjob 存储库,切换到 list-clusters 分支,然后手动安装。该分支似乎解决了这个问题。

更新:

对于现在正在查看此问题的任何人,分支似乎已更改:

The list-cluster branch no longer exists; please use the v0.4.x branch instead: https://github.com/Yelp/mrjob/tree/v0.4.x

来自邮件列表