fervent
fervent

Reputation: 133

Does the deletion of files from hdfs removes corresponding hive external table partitions?

I have a hive external table which creates partitions on a daily basis dynamically.

In order to free up the memory space, I'm planning to delete some of the files from hdfs.

Will the removal of files from hdfs also removes partitions of the corresponding hive table ? (or) Do we need to explicitly remove the partitions of the hive table?

Upvotes: 0

Views: 53

Answers (1)

gmkprabhu
gmkprabhu

Reputation: 46

You have to remove the partition separately. I recommend to delete the partition first using hive command and then delete the files.

Upvotes: 2

Related Questions