cloudera-labs / hms-mirror

"hms-mirror" is a utility used to bridge the gap between two clusters and migrate hive metadata.
Apache License 2.0
13 stars 8 forks source link

Add a revert option for 'failed' STORAGE_MIGRATION tasks #45

Open dstreev opened 1 year ago

dstreev commented 1 year ago

If there's an issue migrating the data with STORAGE_MIGRATION 'after' the table has been 'renamed', we need to provide a restore script that will reset the table names back to the original.

dstreev commented 1 year ago

A case when this happens is when 'hive' doesn't have the rights to create the warehouse location for the table. Which happens AFTER the table has already been altered/renamed.