Tell me more ×
Computer Science Stack Exchange is a question and answer site for students, researchers and practitioners of computer science. It's 100% free, no registration required.

How can I repeat the map and reduce process and feed the output of reduce into map function (in the next round)?

My second question is how to define a global variable with is accessible among all map and reduce funtions?

share|improve this question
2  
This might be more of a programming question suited for stackoverflow.com. – usul Dec 4 '12 at 22:41
2  
I don't understand the question, it's awfully vague. What exactly are you trying to do? Maybe you should explain what you want to compute and where you're stuck. – Gilles Dec 4 '12 at 23:01
1  
I'm a Stack Overflow moderator. Topically, this would be a better fit for Stack Overflow, and you're welcome to ask it there provided that you list more details and (preferably) show code you've tried which does not work. This wasn't migrated because it would quickly be closed as-is, which wouldn't be a good experience for you. – Tim Post Dec 6 '12 at 10:31

closed as off topic by Merbs, Luke Mathieson, Ran G., Raphael Dec 6 '12 at 10:25

Questions on Computer Science Stack Exchange are expected to relate to computer science within the scope defined in the FAQ. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about closed questions here.

1 Answer

You can try using ChainMapper and ChainReducer to create a job pattern like

[MAP+ / REDUCE MAP*]
share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.