Your issue with js_reload is a known bug that is fixed in the upcoming release. To use Erlang modules add the "add_paths" declaration to your app.config and place your compiled module in that directory, you can find out more about this on the wiki here: http://wiki.basho.com/MapReduce.html
Grant Schofield Developer Advocate Basho Technologies. On Dec 30, 2010, at 6:55 AM, Shai Garniek wrote: > I want to use custom javascript/erlang functions in riak map/reduce and I'm > having trouble loading js functions to the riak nodes > I places a js file in the location specifies as the js_file_path in the > app.config. > when I try to run the the riak-admin js_reload command I'm getting the > following error: > > RPC to '[email protected]' failed: {'EXIT', > > {{undef, > > [{ets,next,[856095]}, > > {riak_kv_js_manager,reload_idle_vms, > > 2}, > > {riak_kv_js_manager,handle_call,3}, > > {gen_server,handle_msg,5}, > > {proc_lib,init_p_do_apply,3}]}, > > {gen_server,call, > > [riak_kv_js_manager,reload_vms]}}} > > > Can anyone tell me what am I doing wrong? > > I also wanted to know what is the process of loading custom erlang function > to riak. If anyone can tell me how that would be helpful. > > > > > _______________________________________________ > 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
