You are viewing a single comment's thread. Return to all comments →
I'm confused. The print in MapReducer.execute() (shown below) can never print a "99" - it always prints two things, wrapped into a json structure.
print "{\"key\":\""+item[0]+"\",\"value\":" + str(item[1]) + "}"
Are we supposed to modify execute() as well?
Seems like cookies are disabled on this browser, please enable them to open this website
Relational MapReduce Patterns #2 - Selections
You are viewing a single comment's thread. Return to all comments →
I'm confused. The print in MapReducer.execute() (shown below) can never print a "99" - it always prints two things, wrapped into a json structure.
print "{\"key\":\""+item[0]+"\",\"value\":" + str(item[1]) + "}"
Are we supposed to modify execute() as well?