Re: calling erlang module, function from python-riak client in mapreduce

2014-05-26 Thread Gopi Krishna
Hi erik, yes i have exported the function,and also i have put the beam file under the riaks path in side the app.config file as riak_kv {riak_kv, [ %% beam files for mapreduce {add_paths,["/home/intel/gopi/sam_programmes/erl/erlmap/beams"]}, In the beams file i have maps.beam file

RE: calling erlang module,function from python-riak client in mapreduce

2014-05-26 Thread Erik Søe Sørensen
Hello - Did you ensure that the function in question is exported from the module? (Also: that the beam file is placed in the Riak node's search path?) Oprindelig meddelelse Fra: Gopi Krishna Dato:26/05/2014 14.18 (GMT+01:00) Til: riak-users@lists.basho.com Emne: calling erlang

calling erlang module,function from python-riak client in mapreduce

2014-05-26 Thread Gopi Krishna
Hi all, I've been doing the thing get the map phase work in query.map() in python-riak client. I have written a function in erlang. funs(Obj,_,_) -> [riak_object:get_value(Obj)]. I have saved it in a file called *maps.erl* I have compiled the *maps.erl* to get the *maps.beam *file to give the

Java Library - best practice

2014-05-26 Thread Henning Verbeek
I'd like to get some advice how best to handle clients in a multi-threaded Java application. Riak is 1.4.8, java client library is 1.4.4, using the protocol buffers clients. I'm referring specifically to http://basho.github.io/riak-java-client/1.4.4/com/basho/riak/client/RiakFactory.html#newClient