[
https://issues.apache.org/jira/browse/HBASE-3887?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Daniel Einspanjer updated HBASE-3887:
-------------------------------------
Attachment: online_delete.rb
This script deletes regions on a live table. The only thing it doesn't
currently do is split regions that are partially within the start / end key
range. I would love it if someone could take a crack at putting that
enhancement in this or writing a separate script to do it.
Tested with a few test clusters in various conditions and then used this script
to delete thousands of old regions from our large production table.
> Add region deletion tool
> ------------------------
>
> Key: HBASE-3887
> URL: https://issues.apache.org/jira/browse/HBASE-3887
> Project: HBase
> Issue Type: New Feature
> Components: regionserver
> Reporter: Ophir Cohen
> Priority: Minor
> Attachments: online_delete.rb
>
>
> A region deletion tool can be very useful to remove large amount of data.
> For example, it can be used to remove all data older than specific date
> (assuming your data sorted by dates) etc...
> This tool should be something as follows:
> Input: region key or (even better!) start & end key.
> 1. Split region to isolate the keys.
> 2. Disable the relevant regions.
> 3. Delete files from the file system.
> 4. Update .META. table.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira