โ05-04-2025 05:37 PM - edited โ05-04-2025 05:38 PM
I was following a tutorial to learn databricks from https://youtu.be/7pee6_Sq3VY
Great video btw
I am stuck here at 2:52:24
I am trying to create an external table directly to data lake but i am facing some weird issue saying no such location exists.
I have already tried list and it was able to access the path and list all my files on data lake
โ05-04-2025 09:22 PM
Hi mridultuteja,
How are you doing today?, As per my understanding, If youโre getting an error like โno such location existsโ when trying to create an external table, even though dbutils.fs.ls() works and lists your files, the issue is usually related to how paths are referenced when using Unity Catalog. When creating an external table, especially with CREATE TABLE ... LOCATION, Unity Catalog expects the path to be registered as an external location with proper permissions. Just because the notebook can read the path doesn't mean Unity Catalog has the right access. To fix this, go to the Databricks UI, register your external location under Data > External Locations, and make sure your storage credential has the correct access to the path. Once thatโs done, try creating the table again using that external location. Let me know if you want help setting up the location registrationโitโs a one-time thing, and then it works smoothly!
Regards,
Brahma
โ05-04-2025 10:13 PM
@mridultuteja
Hi,
In addition to Brahma's excellent response, Iโll also attach some helpful links.
This issue has come up multiple times in the community in the past.
โ05-07-2025 12:29 PM
I still need help in this
โ05-07-2025 12:43 PM
Hi,
Did you try out my suggestion?
Regards,
Brahma
โ05-07-2025 12:49 PM
I need help in registering the location as you have guided.
Thanks in advance.
โ05-07-2025 05:18 PM
Hey @mridultuteja
To register an external location, you have to first create a Storage Credential, and then create the External Location.
This process allows Databricks to securely access data stored in Azure Data Lake Storage Gen2 (ADLS Gen2), while maintaining fine-grained access control through Unity Catalog. External locations are used to govern access to files and directories outside of the managed Delta Lake tables.
There are different approaches to creating this through SQL or the UI, and Iโm sharing a video that could help you understand it more easily ๐
https://www.youtube.com/watch?v=KBB14qcELD4
Hope this helps, ๐
Isi
Passionate about hosting events and connecting people? Help us grow a vibrant local communityโsign up today to get started!
Sign Up Now