Thanks Evan, that worked.
On Thu, Apr 4, 2013 at 11:14 AM, Evan Vigil-McClanahan < [email protected]> wrote: > As of 1.3 the old client:mapreduce is deprecated, please use > `riak_kv_mrc_pipe:mapred` instead. > > On Thu, Apr 4, 2013 at 9:07 AM, Tom Zeng <[email protected]> wrote: > > Hi everyone, > > > > I am trying to run the Erlang m/r following the Riak Handbook, and got > the > > following error: > > > > ([email protected])4> ExtractTweet = fun(RObject, _, _) -> > > ([email protected])4> {struct, Obj} = mochijson2:decode( > > ([email protected])4> riak_object:get_value(RObject)), > > ([email protected])4> [proplists:get_value(<<"tweet">>, Obj)] > > ([email protected])4> end. > > #Fun<erl_eval.18.82930912> > > ([email protected])5> C:mapred([{<<"tweets">>, <<"41399579391950848">>}], > > ([email protected])5> [{map, {qfun, ExtractTweet}, none, true}]). > > ** exception error: undefined function riak_client:mapred/3 > > > > I've been using JavaScript for m/r and just started using Erlang per > Basho > > engineers' recommendation at Riak DC meetup. Any help/pointers > appreciated. > > > > Thanks > > Tom > > -- > > Tom Zeng > > Director of Engineering > > Intridea, Inc. | www.intridea.com > > [email protected] > > > > > > _______________________________________________ > > riak-users mailing list > > [email protected] > > http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com > > >
_______________________________________________ riak-users mailing list [email protected] http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
