Python ApplicationError:7当mapreduce worker写入Google云存储的处理完成时
刚刚完成一个大型Appengine mapreduce任务,我的许多碎片在离终点线的瞬间被卡住了。以下是设置:Python ApplicationError:7当mapreduce worker写入Google云存储的处理完成时,python,google-app-engine,mapreduce,google-cloud-storage,mapper,Python,Google App Engine,Mapreduce,Google Cloud Storage,Mapper,刚刚完成一个大型Appengine mapreduce任务,我的许多碎片在离终点线的瞬间被卡住了。以下是设置: filenames = yield mapreduce_pipeline.MapperPipeline( 'example mapper name', 'main.MyMapper', input_reader_spec='mapreduce.input_readers.DatastoreInputRead
filenames = yield mapreduce_pipeline.MapperPipeline(
'example mapper name',
'main.MyMapper',
input_reader_spec='mapreduce.input_readers.DatastoreInputReader',
output_writer_spec='mapreduce.output_writers.FileOutputWriter',
params={
'input_reader':{
'entity_kind':'models.MyModel'
},
'output_writer':{
'filesystem':'gs',
'mime_type':'text/csv',
'gs_bucket_name':'myBucket',
'output_sharding':'input'
}
},
shards=DUMP_SHARDS
)
我正在并行运行其中的3个,每个都有16个碎片。一个制图员完成了没有问题,另外两个制图员在他们的14和9个碎片上都取得了成功
其余的碎片都被完全屏蔽,返回未知错误:ApplicationError:7
。(本文末尾的完整堆栈跟踪。)
请注意,映射程序正在尝试写入谷歌云存储。错误发生在执行此写入的位中
在四处搜寻了一段时间后,我发现,在中(似乎是有问题的代理),错误7是OTHER\u error
我已经重试这些最后的任务(从任务队列)大约3个小时了,自从这些错误开始以来,没有一个成功;不管发生什么事,它都被卡住了。我也尝试过停止所有的实例,以防这是一些奇怪的地方政府的事情,但没有改变那里
以下是完整的堆栈跟踪:
I 2012-12-13 15:40:23.909
Processing done for shard 14 of job '1582444192075C233F6AA'
E 2012-12-13 15:40:23.969
ApplicationError: 7
Traceback (most recent call last):
File "/base/python27_runtime/python27_lib/versions/third_party/webapp2-2.3/webapp2.py", line 1511, in __call__
rv = self.handle_exception(request, response, e)
File "/base/python27_runtime/python27_lib/versions/third_party/webapp2-2.3/webapp2.py", line 1505, in __call__
rv = self.router.dispatch(request, response)
File "/base/python27_runtime/python27_lib/versions/third_party/webapp2-2.3/webapp2.py", line 1253, in default_dispatcher
return route.handler_adapter(request, response)
File "/base/python27_runtime/python27_lib/versions/third_party/webapp2-2.3/webapp2.py", line 1077, in __call__
return handler.dispatch()
File "/base/python27_runtime/python27_lib/versions/third_party/webapp2-2.3/webapp2.py", line 547, in dispatch
return self.handle_exception(e, self.app.debug)
File "/base/python27_runtime/python27_lib/versions/third_party/webapp2-2.3/webapp2.py", line 545, in dispatch
return method(*args, **kwargs)
File "/base/data/home/apps/myserver/myinstance.363844686987482417/mapreduce/base_handler.py", line 65, in post
self.handle()
File "/base/data/home/apps/myserver/myinstance.363844686987482417/mapreduce/handlers.py", line 231, in handle
tstate.output_writer.finalize(ctx, shard_state.shard_number)
File "/base/data/home/apps/myserver/myinstance.363844686987482417/mapreduce/output_writers.py", line 631, in finalize
files.finalize(self._filename)
File "/base/data/home/apps/myserver/myinstance.363844686987482417/mapreduce/lib/files/file.py", line 568, in finalize
f.close(finalize=True)
File "/base/data/home/apps/myserver/myinstance.363844686987482417/mapreduce/lib/files/file.py", line 291, in close
self._make_rpc_call_with_retry('Close', request, response)
File "/base/data/home/apps/myserver/myinstance.363844686987482417/mapreduce/lib/files/file.py", line 427, in _make_rpc_call_with_retry
_make_call(method, request, response)
File "/base/data/home/apps/myserver/myinstance.363844686987482417/mapreduce/lib/files/file.py", line 252, in _make_call
_raise_app_error(e)
File "/base/data/home/apps/myserver/myinstance.363844686987482417/mapreduce/lib/files/file.py", line 186, in _raise_app_error
raise UnknownError(e)
UnknownError: ApplicationError: 7
我刚刚遇到了一个类似的问题。 我认为这是一个专门针对谷歌云存储的问题 我在这里获得了一些见解: 概要(TLDR):
- 可能是一次性的网络问题
- 可能是账单问题
- 结果:如果它没有消失,并且无法修复账单,请联系谷歌支持