A simple commit hook

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

A simple commit hook

Mav erick
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
[hidden email]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
Reply | Threaded
Open this post in threaded view
|

Re: A simple commit hook

Nick Marino
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!
Nick

On Mon, Nov 7, 2016 at 9:20 AM, Mav erick <[hidden email]> 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
[hidden email]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com



_______________________________________________
riak-users mailing list
[hidden email]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com