Hi everybody,

I'm learning how to execute a map/reduce using the riak_client module, so I
tried this:

>Map = fun(O, undefined, none) -> [riak_object:get_value(O)] end.
>C:mapred([{<<"buck">>, <<"key1">>}, {<<"buck">>, <<"key2">>}], [{map,
{qfun, Map}, none, true}]).

but I got  this error:

{error,{error,{badfun,#Fun<erl_eval.18.59269574>},
              [{riak_kv_mapper,run_map,9},
               {riak_kv_mapper,'-do_map/2-fun-0-',9},
               {lists,foldl,3},
               {riak_kv_mapper,do_map,2},
               {gen_fsm,handle_msg,7},
               {proc_lib,init_p_do_apply,3}]}}

What is wring with my code??
_______________________________________________
riak-users mailing list
[email protected]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Reply via email to