Re: Debugging mapreduce

2013-09-25 Thread Matt Snyder
I know it's a few extra steps, but I've had success using node.js and riak-js(http://riakjs.com) to debug MapReduce I'm actually working on a new app called Refraction that will be a Futon (CouchDB) like interface for Riak. I hope to have that available as open source in the next few weeks. Th

Re: Debugging mapreduce

2013-09-24 Thread Charl Matthee
Hi, On 25 September 2013 03:44, Toby Corkindale wrote: > Have you tried executing your javascript outside of Riak? > ie. paste the function into the Chrome debugger, then call it with a > Riak-like data structure. The problem with this approach is I need to make some assumptions on what the dat

Re: Debugging mapreduce

2013-09-24 Thread Toby Corkindale
On 25/09/13 11:20, Charl Matthee wrote: Hi, I am trying to run the following mapreduce query across my cluster: # curl -XPOST http://10.179.229.209:8098/mapred -H "Content-Type: application/json" -d '{"inputs":"tweets", "query":[{"map":{"language":"javascript", "source":"function(value, keyData

RE: Debugging mapreduce

2013-09-24 Thread Erik Søe Sørensen
You're using single quotes in a JS program which is itself in single quotes - so they don't get to be part of the program, so the "/tmp/m..." part looks to JS like a bad regex. Hence the error message. Oprindelig meddelelse Fra: Charl Matthee Dato: Til: riak-users Emne: Debu