Skip to content

Instantly share code, notes, and snippets.

@srs81
Created July 10, 2012 17:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save srs81/3085119 to your computer and use it in GitHub Desktop.
Save srs81/3085119 to your computer and use it in GitHub Desktop.
Python script with Happybase to disable/delete all tables in HBase
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