can't uninstall pre-commit hook

Mark Volkmann r.mark.volkmann at gmail.com
Wed Aug 8 14:39:02 EDT 2012


On Wed, Aug 8, 2012 at 1:22 PM, Mark Volkmann <r.mark.volkmann at gmail.com>wrote:

> I have a bucket named "users".
> When I run "curl http://localhost:8091/riak/users", I get
> {
>   "props": {
>   . . .
>     "precommit": [      {
>         "mod": "riak_search_kv_hook",
>         "fun": "precommit"
>       }
>     ],
>     . . .
>   }
> }
>
> I have four nodes in my cluster. For each one I cd to the bin directory of
> the cluster and enter "./search-cmd uninstall users". Then I rerun the
> command above to see the properties of the user bucket and it still has the
> same precommit hook!
>
> What do I need to do to remove that?
>

I still don't know why "./search-cmd uninstall users" doesn't work, but I
found another way to remove the pre-commit hook.

curl http://localhost:8091/riak/{bucket-name} | apto json > props.json
# edit props.jsoncurl -XPUT http://localhost:8091/riak/{bucket-name}
-H "Content-Type: application/json" -d @props.json

-- 
R. Mark Volkmann
Object Computing, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20120808/b1579ea2/attachment.html>


More information about the riak-users mailing list