Due to legal issues I need to delete old data from HBase.
I found a way to split the region using my criteria and by that moving the old data to the new region, but is there a way to delete that region?
any other idea how to achieve by goal?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Try
If you are not sure what the row you want to delete run a scan on the “.META.” or dump its value into a file:
then find your row and delete it.
Since this will leave your regions with a “hole”, make sure you run
hbase hbck PlatformData -repairto fix those.Here is a small java code snippet that does just that, and deletes files from underlying HDFS.