Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to skip Trash while dropping partition from Managed Tables using alter drop partition command

Tags:

hadoop

hive

hdfs

Is there any way to skip Trash while dropping a partition using the command below from a Managed Table in Hive?

ALTER TABLE <table> DROP PARITION (<partition_name>)

Similar to what we do when removing files using hadoop fs command like hadoop fs -rmr -skipTrash

like image 999
hjamali52 Avatar asked Oct 19 '25 02:10

hjamali52


1 Answers

Try this set.

SET hive.warehouse.data.skiptrash=true;

like image 86
hsm1977 Avatar answered Oct 22 '25 05:10

hsm1977