Erlang map/reduce functions using the Java client library

Brian Roach roach at
Tue Apr 17 14:26:44 EDT 2012

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. 

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
> riak-users at

More information about the riak-users mailing list