Thanks Evan, that worked.

On Thu, Apr 4, 2013 at 11:14 AM, Evan Vigil-McClanahan <
emcclana...@basho.com> 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 <t...@intridea.com> wrote:
> > Hi everyone,
> >
> > I am trying to run the Erlang m/r following the Riak Handbook, and got
> the
> > following error:
> >
> > (riak@127.0.0.1)4> ExtractTweet = fun(RObject, _, _) ->
> > (riak@127.0.0.1)4>  {struct, Obj} = mochijson2:decode(
> > (riak@127.0.0.1)4>    riak_object:get_value(RObject)),
> > (riak@127.0.0.1)4>  [proplists:get_value(<<"tweet">>, Obj)]
> > (riak@127.0.0.1)4> end.
> > #Fun<erl_eval.18.82930912>
> > (riak@127.0.0.1)5> C:mapred([{<<"tweets">>, <<"41399579391950848">>}],
> > (riak@127.0.0.1)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
> > t...@intridea.com
> >
> >
> > _______________________________________________
> > riak-users mailing list
> > riak-users@lists.basho.com
> > http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
> >
>
_______________________________________________
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Reply via email to