jackfengji / test_pro

Doc for dpark which is a python rewrite for spark
155 stars 43 forks source link

Dpark其中一个示例有误 #5

Open swl5571147a opened 9 years ago

swl5571147a commented 9 years ago

https://github.com/jackfengji/test_pro/wiki/Examples

Dpark中一个示例有误:升级版二 原示例: word_count = ctx.accumulator(0) 应该修正为: word_count = ctx.accumulator.Accumulator(0)

否则会报错误: TypeError: 'module' object is not callable

希望尽快修改,以免后续学习者迷惑。