0

我正在运行 mapreduce 框架附带的演示。它给了我一个错误:

 File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/ext/webapp/_webapp25.py", line 703, in __call__
    handler.post(*groups)
  File "/path/to/mapreduce/base_handler.py", line 68, in post
    self.handle()
  File "/path/to/mapreduce/handlers.py", line 431, in handle
    self.aggregate_state(state, shard_states)
  File "/path/to/mapreduce/handlers.py", line 462, in aggregate_state
    context.COUNTER_MAPPER_CALLS))
  File "/path/to/mapreduce/model.py", line 257, in get
    return self.counters.get(counter_name, 0)
AttributeError: 'list' object has no attribute 'get'

这是我做错了什么,演示不起作用吗?其他地方有更多更新的代码吗?

这是使用来自http://appengine-mapreduce.googlecode.com/svn/trunk/的代码

4

1 回答 1

0

不熟悉该代码,但最新代码是您可以从 SDK 下载的 MapReduce Bundle: https ://developers.google.com/appengine/downloads

它带有一些演示。我能够遵循这个并让它工作: http ://code.google.com/p/appengine-mapreduce/wiki/GettingStartedInPython

这是我在尝试运行 MapReduce 时的一些附加说明。 http://eatdev.tumblr.com/post/17983355135/using-mapreduce-with-django-nonrel-on-app-engine

于 2012-04-11T19:46:27.780 回答