A simple commit hook

Nick Marino nmarino at basho.com
Wed Nov 9 13:23:33 EST 2016

Hi Mav,

I've never written any commit hooks myself really, but it looks like we
have some examples you could check out here:


Additionally, if you haven't already, you should check out the official
Basho commit hook docs here:


Since commit hooks are written in Erlang and loaded directly into the Riak
node, you should be able to achieve any of those things that you mentioned
just by writing the appropriate Erlang code to do it. I know that may not
be super helpful to you if you don't know Erlang, but I believe that's the
only language we support for commit hooks at this time, so hopefully that's
not a showstopper.

Hope that helps!

On Mon, Nov 7, 2016 at 9:20 AM, Mav erick <mav4001 at gmail.com> wrote:

> Hello Folks
> I am looking for a really simple hook (pre or post commit) that will do
> send http put of the key to a server. I could also live with some simple
> send of the key via a tcp connection, or for that matter pipe the key value
> to a local process
> Any pointers on how to create such a hook or an example would be greatly
> appreciated
> Regards
> Mav
> _______________________________________________
> riak-users mailing list
> riak-users at lists.basho.com
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20161109/53e1be94/attachment-0002.html>

More information about the riak-users mailing list