How to delete all the data and metadata in HBase WITHOUT uninstalling and reinstalling? How to delete all the data and metadata in HBase WITHOUT uninstalling and reinstalling? hadoop hadoop

How to delete all the data and metadata in HBase WITHOUT uninstalling and reinstalling?


I do not recommend this unless you are at the point of no return.

I do not know if this is the correct way to nuke the hbase data, but when I run into such inconsistencies I usually delete all the contents the directory which is holding hbase data.So the place would be look for the following property in hbase-site.xml
hbase.rootdir

I have not used this approach once the system got stable on my local dev machine. Usually if I shut down the cluster properly before shutting down the system, then I do not run into such problems.


the answer above isn't the whole story, I found this with my hbase today. if you are running with zookeepers, you also need to delete those data kept by the zookeeper,as I've posted in this question https://stackoverflow.com/a/51857841/8428146