Solution for loading hook modules on riak cluster restart

Grant Schofield grant at
Mon Mar 28 10:31:51 EDT 2011

Use the add_paths option in the riak_kv section of your app.config file. This feature is documented here:

Grant Schofield
Developer Advocate
Basho Technologies

On Mar 28, 2011, at 6:18 AM, Ori Bar wrote:

> I have implemented several hooks for riaks which currently reside in
> modules that are not in the riak path.
> Whenever I wish to install the hooks for a specific bucket, I first
> run load_module to make sure that the riak nodes can call the hooks.
> The problem is that if one of the nodes goes down and then back up, it
> will still try to call the hooks, but will not have access to the
> module.
> What is the recommended way to handle this? One idea I thought was
> modifying ERL_LIBS such that the hooks are included in its path, is
> this the right approach?
> --
> Best Regards,
> Ori Bar, Software Engineer
> Nivertech Ltd
> email: at
> phone:   +972-52-2838429
> www:
> The content of this message is Nivertech Ltd Confidential.  If you are
> not the intended recipient and have received this message in error,
> any use or distribution is prohibited. Please notify me immediately by
> reply e-mail and delete this message from your computer system. Thank
> you.
> _______________________________________________
> riak-users mailing list
> riak-users at

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the riak-users mailing list