cancel
Showing results for 
Search instead for 
Did you mean: 
Data Governance
cancel
Showing results for 
Search instead for 
Did you mean: 

Unity Catalog meta store renaming

Ismail1
New Contributor III

Hi guys, new to we have a unity catalog setup already supporting 4 of our workspaces and we would like to rename the metastore. What I would like to confirm is whether or not would I require any configurational or code changes after renaming?

1 ACCEPTED SOLUTION

Accepted Solutions

Anonymous
Not applicable

@Syed Ismail​ :

  1. Renaming the metastore in Unity Catalog typically does not impact the physical location of the underlying backend bucket.
  2. The primary changes required involve updating the metastore name within the Unity Catalog configuration and related workspace configurations.
  3. User code generally interacts with the namespaces (catalog, schema, tables/views) rather than directly referencing the metastore. Therefore, code changes related to metastore renaming are usually minimal unless the metastore name is explicitly referenced in custom code, in which case those references should be updated.

View solution in original post

4 REPLIES 4

Anonymous
Not applicable

@Syed Ismail​ 

If you are renaming the metastore, you will need to update the configuration files of the workspaces to point to the new metastore location. You can typically do this by updating the configuration files of the workspaces to include the new metastore location.

Additionally, you may need to update any scripts or code that reference the old metastore location to use the new one. This will depend on how your code is written and how it interacts with the metastore.

It's always a good idea to test your changes thoroughly before deploying to production to ensure that everything is working as expected.

Ismail1
New Contributor III

Hi Sujeta, here's the thing, where just renaming the metastore, the backend bucket it points to would be the same right? How would that change the metastore location? Nonetheless, I get that workspace configs might be changed. Secondly, Users and code only reference the three namespaces (catalog, schema, table/views) right? The metastore is above those, how would that factor in code changes?

Anonymous
Not applicable

@Syed Ismail​ :

  1. Renaming the metastore in Unity Catalog typically does not impact the physical location of the underlying backend bucket.
  2. The primary changes required involve updating the metastore name within the Unity Catalog configuration and related workspace configurations.
  3. User code generally interacts with the namespaces (catalog, schema, tables/views) rather than directly referencing the metastore. Therefore, code changes related to metastore renaming are usually minimal unless the metastore name is explicitly referenced in custom code, in which case those references should be updated.

Anonymous
Not applicable

Hi @Syed Ismail​ 

Thank you for posting your question in our community! We are happy to assist you.

To help us provide you with the most accurate information, could you please take a moment to review the responses and select the one that best answers your question?

This will also help other community members who may have similar questions in the future. Thank you for your participation and let us know if you need any further assistance! 

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.