Below is what am trying in order,
Any insights on this behavior would be of great help.
Yes, MSCK REPAIR TABLE
will only discover new partitions, not delete "old" ones.
Working with external hive tables where you deleted the HDFS folder, I see two solutions
MSCK REPAIR TABLE
. This is my prefered solution. ALTER TABLE <table> DROP PARTITION <partition>
What you observe in your case is maybe related to these: https://issues.apache.org/jira/browse/SPARK-15044 and https://issues.apache.org/jira/browse/SPARK-19187
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.