hivedrop-table

Hive: DROP TABLE IF EXISTS <Table Name> does not free memory


When I am using DROP TABLE IF EXISTS <Table Name> in hive, it is not freeing the memory. The files are created as 0000_n.bz2 and they are still on disk.

I have two questions here:

1) Will these files keep on growing for each and every insert? 2) Is there any DROP equivalent to remove the files as well on the disk?


Solution

  • Couple of things you can do: