Created
July 10, 2012 17:54
-
-
Save srs81/3085119 to your computer and use it in GitHub Desktop.
Python script with Happybase to disable/delete all tables in HBase
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import happybase | |
c = happybase.Connection() | |
for t in c.tables(): | |
c.disable_table(t) | |
c.delete_table(t) | |
print (t + " deleted") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment