Cleaning up buckets

Alexander Sicular siculars at gmail.com
Thu Nov 10 13:55:05 EST 2011


there is no equivalent to drop table / drop bucket.

you need to list all keys via streaming and issue a delete on each key. even then , the delete is a write , so mind your disk (at least in bitcask).

If this is a test environment just do a "rm -r riak/data/*" and start over.

cheers,


-Alexander Sicular

@siculars
http://siculars.posterous.com

On Nov 10, 2011, at 1:00 PM, Stefan Gebhardt wrote:

> Hi
> 
> I just started playing around with riak.
> For the purpose of testing i uploaded 1 million random generated items(using uuid for keys) to a single bucket
> via the python API.
> Now i like to clean/remove this bucket and run the upload again. At the moment i am looking for smth. like DROP Bucket. Neither in the erlang api nor in the python api i found a function for doing so.
> Then i tried to list all keys and delete item by item but the call  "list 1 million keys" never returned and ok,,, silly plan at all.
> 
> So... My questions are:
> How can i clean up my cluster?
> Why is there no function to remove a bucket?
> 
> Cheers
> Stefan
> 
> 
> 
> 
> -- 
> --
> 
> Stefan Gebhardt * stefan.gebhardt at abas.de
> Software Development
> ABAS Software AG * ERP / PPS / WWS / eBusiness
> Südendstraße 42 * 76135 Karlsruhe * GERMANY
> Vorstand: Werner Strub (Vorsitzender), Peter Walser
> Vorsitzender des Aufsichtsrats: Thomas Frank
> HRB 107644 Amtsgericht Mannheim
> Tel. +49 (0) 721/9 67 23 0 * Fax +49 (0) 721/9 67 23 100
> http://www.abas.de * info at abas.de
> 
> 
> _______________________________________________
> 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/20111110/6dab6ec4/attachment.html>


More information about the riak-users mailing list