我正在运行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'
这是我做错了什么,这个演示不起作用吗?其他地方是否有更新的代码?
中的代码答案 0 :(得分: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