Re: running erlang map phases via REST API

2011-01-28 Thread Seth Falcon
On Thu, Jan 27, 2011 at 12:15 AM, Dan Reverri wrote: > This commit looks interesting. A lot of changes were made to map reduce in > 0.14 so I am not sure it will work in it's current form. > I think we would only need to include the changes in riak_kv_mapred_json.erl > and riak_kv_mapred_query.erl

Re: running erlang map phases via REST API

2011-01-27 Thread Dan Reverri
This commit looks interesting. A lot of changes were made to map reduce in 0.14 so I am not sure it will work in it's current form. I think we would only need to include the changes in riak_kv_mapred_json.erl and riak_kv_mapred_query.erl. Within riak_kv_mapred_query.erl we can convert the function

Re: running erlang map phases via REST API

2011-01-26 Thread Seth Falcon
Hi all, I too would find this useful. And a while back I wrote a patch that enabled it. I'm afraid the patch has likely suffered bit rot, but the ideas can at least be harvested: https://issues.basho.com/show_bug.cgi?id=806 http://github.com/seth/riak_kv + seth -- Seth Falcon | @sfalcon | h

Re: running erlang map phases via REST API

2011-01-24 Thread Brendan
having an anonymous fun would seem useful on a larger cluster - you wouldn't need to distribute a new file/module to all machines in the cluster (as i think you must do now?). the docs around calling an erlang map phase are a bit confusing (http://wiki.basho.com/MapReduce.html): > Function source

Re: running erlang map phases via REST API

2011-01-24 Thread Eric Moritz
I would find this useful. It's easier to run an anonymous function than to deploy an erlang module to a cluster. On Jan 24, 2011 3:34 PM, "Dan Reverri" wrote: > Hi Brendan, > > Anonymous Erlang functions are not currently supported in map reduce phases. > Is this a feature the community would find

Re: running erlang map phases via REST API

2011-01-24 Thread Dan Reverri
Hi Brendan, Anonymous Erlang functions are not currently supported in map reduce phases. Is this a feature the community would find valuable? Thanks, Dan Daniel Reverri Developer Advocate Basho Technologies, Inc. d...@basho.com On Mon, Jan 24, 2011 at 12:14 PM, Brendan wrote: > is it possibl

running erlang map phases via REST API

2011-01-24 Thread Brendan
is it possible to pass erlang anonymous funs via the REST API? i took a javascript query, replaced "language":"javascript" with "language":"erlang" and changed the source to an anonymous fun, but i end up getting an error from the REST API back.am i doing something wrong here, or can erlang functio