Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

debugging a mapreduce job #162

Open
kardes opened this issue Mar 31, 2015 · 1 comment
Open

debugging a mapreduce job #162

kardes opened this issue Mar 31, 2015 · 1 comment

Comments

@kardes
Copy link

kardes commented Mar 31, 2015

hi, I'd like to get into the map and reduce functions of the simple wordcount example using rmr2, using the debug() function in R.
I load rmr2:
library(rmr2)

and then try ( as suggested at https://github.com/RevolutionAnalytics/rmr2/blob/master/docs/tutorial.md)

rmr.options(backend = "local")
NULL

is what I get. What is exactly the procedure to achieve what I'd like to do. I simply would like get inside the map and reduce functions to see how things work together. Thanks.

@piccolbo
Copy link
Collaborator

After changing backend, as you did, use function debug as usual. It's
helpful to use named functions as map and reduce function, so that you can
enter debug(my.map.function). If you use anonymous functions, it's more
complicated.

On Tue, Mar 31, 2015 at 3:48 PM, kardes [email protected] wrote:

hi, I'd like to get into the map and reduce functions of the simple
wordcount example using rmr2, using the debug() function in R.
I load rmr2:
library(rmr2)

and then try ( as suggested at
https://github.com/RevolutionAnalytics/rmr2/blob/master/docs/tutorial.md)

rmr.options(backend = "local")

NULL

is what I get. What is exactly the procedure to achieve what I'd like to
do. I simply would like get inside the map and reduce functions to see how
things work together. Thanks.


Reply to this email directly or view it on GitHub
#162.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants