cancel
Showing results for 
Search instead for 
Did you mean: 
Administration & Architecture
Explore discussions on Databricks administration, deployment strategies, and architectural best practices. Connect with administrators and architects to optimize your Databricks environment for performance, scalability, and security.
cancel
Showing results for 
Search instead for 
Did you mean: 

Move metastore to another azure subscription

alesventus
Contributor

Hi, 

We need to migrate our metastore with Unity Catalog to a new Azure subscription while remaining in the same Azure region. Currently, we have two workspaces attached to a single Unity Catalog. Iā€™m looking for the best approach to move the metastore from one Azure subscription to another.

One idea is to detach both Databricks workspaces and physically move the ADLSā€”which contains our data and Unity Catalogā€”to the new subscription. After the move, we would delete the old metastore and reconnect the workspaces to the new metastore. Will this approach work? Has anyone had experience with migrating a Databricks metastore?

Additionally, where is the information about catalogs, schemas, and table names stored within the metastore? I have only found a folder named "unitycatalogs" containing generic table names.

alesventus_0-1742817858728.png

 

 

1 REPLY 1

Nivethan_Venkat
New Contributor III

Hi @alesventus,

There are few points to be considered before migrating from One metastore to another. We need to see how the catalogs, schemas and tables are created as of now.

If you have created everything has managed like managed catalog, schema and table everything will remain in your unitycatalogs folder that you have highlighted. You can recreate the metastore with the same ADLS container after you have migrated.

If the schemas and tables are created as external. The path(s) will be pointed one-to-one in your ADLS location, so you can recreate the schema with the same locations pointed earlier.

But there are few points to be considered when it comes to managed tables, if you are deleting a metastore:

Nivethan_Venkat_0-1742900136819.png

Attaching the link for your reference: https://learn.microsoft.com/en-us/azure/databricks/data-governance/unity-catalog/manage-metastore

Please let us know for more clarifications needed.

 

Best Regards,
Nivethan V

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local communityā€”sign up today to get started!

Sign Up Now