Tuesday, 22 March 2016

How to drop all tables in hive at a time in a linux environment ?

Use the following to delete all the tables in a linux environment.

hive -e 'show tables' | xargs -I '{}' hive -e 'drop table {}'


1 comment: