Ahmed - 

You can't define erlang functions in the Java client and send them as part of 
the MR like you can with JavaScript, but if you were to write the functions in 
erlang, put them on your RIak nodes (see below), and use them as named funcs in 
your MR jobs you'll find the performance is far better than JavaScript. 

To make your erlang modules and functions available to MR they need to be 
available on all nodes in the cluster. You can add them by adding the path to 
the "add_paths" setting in the app.config. 

Thanks,
Brian Roach


On Apr 16, 2012, at 12:00 PM, Ahmed Bashir wrote:

> Does anyone specify their Map/Reduce functions in Erlang using the
> Java client library in lieu of JavaScript for better performance?
> 
> Any examples would be appreciated, thanks!
> 
> _______________________________________________
> 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

Reply via email to