Riak 2.0.0 Pre/Post commit error

Humberto Rodriguez h87rguez at gmail.com
Wed Apr 8 06:55:43 EDT 2015


Hello everyone, I have been trying to follow the examples of hooks http://docs.basho.com/riak/2.0.0/dev/using/commit-hooks/, but allways obtained an error (see below).
 
I am using Riak 2.0.0. These are the commands that I am using.
curl -XPUT -H "Content-Type: application/json" -d '{"props":{"precommit":[{"mod": "validate_demo", "fun": "validate"}]}}' http://127.0.0.1:8090/buckets/demo/props
 
curl http://localhost:8090/buckets/demo/props
 
curl -XPUT -H "Content-Type: application/json" -d '{scorew": 5}'  http://127.0.0.1:8090/buckets/demo/keys/1  
 
I checked list of precommit of the bucket and it is there, nevertheless obtained an error. I also checked the configuration (chkconfig) of my node (I'm using a single node) and is OK.
 
I'm using Mac OS X 10.10 (14A389a)

Any suggestion?
 
Thanks in advance,
Humberto
 
This is the structure directory
 
riak-2.0.0
  -> bin
  -> data
  -> erts-5.10.3
  -> etc
    -> riak.conf
    -> advanced.config
    -> solr-log4j.properties
  -> lib 
  -> log
  -> releases
  -> tmp
    -> beams
      ->validate_demo.beam
 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20150408/7ccc6cdc/attachment-0012.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: validate_demo.erl
Type: application/octet-stream
Size: 324 bytes
Desc: not available
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20150408/7ccc6cdc/attachment.erl>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20150408/7ccc6cdc/attachment-0013.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: riak.conf
Type: application/octet-stream
Size: 13120 bytes
Desc: not available
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20150408/7ccc6cdc/attachment.conf>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20150408/7ccc6cdc/attachment-0014.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: advanced.config
Type: application/octet-stream
Size: 91 bytes
Desc: not available
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20150408/7ccc6cdc/attachment.config>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20150408/7ccc6cdc/attachment-0015.html>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20150408/7ccc6cdc/attachment-0016.html>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20150408/7ccc6cdc/attachment-0017.html>


More information about the riak-users mailing list