3 weeks ago
Is there a way to migrate a metastore to a different Databricks account in Databricks?
If not, what alternative approaches can be considered? I can think of the following two:
In both cases, my understanding is that schema and permission settings would need to be reconfigured.
If there are any other better methods, I would appreciate it if you could let me know.
3 weeks ago
Databricks does not provide a builtโin way to โmoveโ or migrate a Unity Catalog (UC) metastore from one Databricks account to another.
Here is the list of activities that you can try
Inventory & plan:
Stand up destination objects with Terraform:
Move data:
Recreate dependent objects:
Reapply governance:
3 weeks ago
With Terraform you can automate almost all of the destination setup and much of the migration workflow, but there isnโt a single Terraform resource that โmoves a metastoreโ across accounts. But it is ideal for provisioning the target Unity Catalog, registering data, setting up sharing, and reapplying grants; actual data copy/materialization is done by jobs or SQL that Terraform can orchestrate.
Terraform does not itself โmigrateโ all tables and data. You still need to materialise data in the destination via CREATE TABLE CLONE (preferred for Delta) or CTAS for other formats, or re-register paths as external tables; Terraform can create the jobs/warehouses/pipelines that run those statements.
3 weeks ago
Hi @r_w_
CSV is a an export, what about governance ? what about if the exported data tomorrow has some changes in schema or some updates?
in a similar scenario in a project we picked a Foreign Catalog. if your existing Catalogs are standard in source, then you may need to simply create a Foreign Catalog, push the data, you are going to share with source (I assume the source is also Databricks User), to the Foreign Catalog then share with source ":
Foreign catalog: a Unity Catalog object that is used only in Lakehouse Federation scenarios. A foreign catalog mirrors a database in an external data system, enabling you to perform read-only queries on that data system in your Databricks workspace.What is Lakehouse Federation?.
3 weeks ago
@r_w_ below with a little more clarity ๐
in a similar scenario in a project we picked a Foreign Catalog. if your existing Catalogs in source are standard, then you may need to simply create a Foreign Catalog, push the data, you are going to share with target (I assume the target is also Databricks User), to the Foreign Catalog then share with target
3 weeks ago
Databricks does not provide a builtโin way to โmoveโ or migrate a Unity Catalog (UC) metastore from one Databricks account to another.
Here is the list of activities that you can try
Inventory & plan:
Stand up destination objects with Terraform:
Move data:
Recreate dependent objects:
Reapply governance: