Mapreduce with Riak
Does anyone have example code for mapreduce for Riak that can be run on a single Riak node. cd ~/riak erl -name zed@127.0.0.1 -setcookie riak -pa apps/riak/ebin In the shell: # connect to the server > {ok, Client} = riak:client_connect('riak@127.0.0.1'). {ok,{riak_client,'riak@127.0.0.1',<<6,201,208,64>>}} # create and insert objects > Client:put(riak_object:new(<<"groceries">>, <<"mine">>, ["eggs", "bacons"]), 1). ok > Client:put(riak_object:new(<<"groceries">>, <<"yours">>, ["eggs", "sausages"]), 1). ok # create Map and Reduce functions > Count = fun(G, 'undefined', 'none') -> [dict:from