cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

External Location Naming Issue & Impact of Renaming in Unity Catalog

Faizan_khan8171
New Contributor

Hey,

I created an external location in my test environment using a mount point . Now, when I try to create the same external location in prod, it doesnโ€™t allow me to use the same name. Is there any specific reason for this restriction in Unity Catalog?

Additionally, if I rename the external location in test, what will be the impact? Will I need to manually update all references like schemas, tables, pipelines, and access permissions?

Looking forward to your insights and best practices. Thanks in advance

1 REPLY 1

Alberto_Umana
Databricks Employee
Databricks Employee

Hello @Faizan_khan8171,

Thanks for your question.

In Unity Catalog, external location names must be unique within the metastore. This restriction prevents naming conflicts and ensures that every external location is easily identifiable and manageable. Therefore, you cannot use the same name for an external location in both test and production environments.

If you rename the external location in your test environment, you will need to manually update all references to this location, such as those in schemas, tables, pipelines, and access permissions. This is because these references are tied to the specific name of the external location.

To manage this effectively, consider the following best practices:

  1. Maintain a Clear Naming Convention: Establish different naming conventions for external locations in test and production environments to avoid conflicts and make it clear which environment a location belongs to.
  2. Update References Methodically: When renaming an external location, make a checklist of all places where this name is referenced (schemas, tables, pipelines, access permissions) and update them systematically.
  3. Test Changes in a Sandbox Environment: Before making changes in the production environment, test the renaming process and the updates to references in a sandbox environment to ensure there are no disruptions to your workflows

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group