I am trying to understand the Erlang API for Map/Reduce queries, but I'm not sure what I'm doing.
I have 4 nodes made by the command 'make devrel'. I started all 4 and joined them into a cluster. Now when I try to follow the documentation here<http://docs.basho.com/riak/1.2.0/references/appendices/MapReduce-Implementation/#MapReduce-via-the-Erlang-API> . 1> {ok, Client} = riak:local_client(). I receive : ** exception error: undefined function riak:local_client/0 I looked around for the erlang files and found them in riak/deps/riak_kv/src. Realizing my shell didn't know about these files, I ran the erlang shell in ^ directory, but then I received this: ** exception error: undefined function riak_core_util:mkclientid/1 in function riak:client_connect/2 (riak.erl, line 120) Can someone please help me understand how I should be calling these functions and where? Also, if someone could explain how to run M/R queries as a script instead of in the shell and provide some example code, that would be great! Thanks, Shaan Sapra
_______________________________________________ riak-users mailing list [email protected] http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
