Forum Discussion
How to integrate Databricks into Fabric
Dears,
If I am not wrong, there are two options avaialable which we can use to integrate databricks into fabric without having to build costum pipelines
1 - Mirror the Azure Databricks catalog (figure1)
2 - Create links (but I am not sure about this one)
When shall I use Fabric mirrrong Azure Databricks catalog and when should I use links or shorcuts? Can someone please help understand? also, are both solutions managed entirely by Fabric?
Thanks,
Pedro
Figure 1)
Hi fabricpribeiro,
Yes, Azure Databricks stores delta tables in cloud storage for example ADLS Gen2, while databricks provides the compute and governance layer over that data.
- If you create a shortcut to a delta table in supported storage, it will appear under the Tables section of your fabric lakehouse. Since the data is stored in delta format, the lakehouse automatically recognizes it as a table, synchronizes the schema and we can easily query it.
- If you create the shortcut under Files, it remains as raw files and will not automatically be recognized as a table, they will appear under the Files section.
For permissions, there are two aspects:
- The shortcut connection must have permission to access the underlying storage where the data resides, this is configured through the shortcut’s connection
- Once the shortcut is created, users only need the appropriate permissions in fabric to access it. They don't need the databricks permissions because the shortcut reads directly from ADLS Gen2 through the configured connection.
- If you are using Mirroring for azure databricks(Unity Catalog) instead of an ADLS shortcut, that is different. Mirroring interacts with unity catalog and follows its permissions and supported scenarios.
Regarding data freshness, shortcuts do not copy the data, they read it in place. As changes are written to the underlying delta tables, fabric reads the latest data from the source, so there isn't a separate synchronization schedule like there is with mirroring.
Thanks and regards,
Anjan Kumar Chippa
Hi fabricpribeiro,
- Use Shortcuts when you want to access the data where it already exists, avoid data duplication and always work with the latest data in the source storage.
- Use Mirroring when you want fabric to maintain a managed copy of the supported source data in OneLake so that it can be used across fabric workloads without building custom ingestion pipelines.
For your reference, follow this below documentation:
Microsoft Fabric Mirrored Catalog From Azure Databricks - Microsoft Fabric | Microsoft Learn
Unify Data Sources With OneLake Shortcuts - Microsoft Fabric | Microsoft Learn
Thanks and regards,
Anjan Kumar Chippa
12 Replies
- djurecic
Super User
Hi fabricpribeiro ,
If you are talking about mirroring vs shortcuts, then here are a couple of good articles:
https://thetrainingboss.com/shortcuts-vs-mirroring/
https://data-mozart.com/mirroring-vs-shortcuts-in-microsoft-fabric-which-one-should-you-use/
- fabricpribeiro
Post Patron
But can I do shorcuts to databricks? My question is specifically about databricks integration to Fabric
- v-achippa
Community Support
Hi fabricpribeiro,
Thank you for reaching out to Microsoft Fabric Community.
Thank you djurecic for the prompt response.
Here both the options are managed within microsoft fabric, but they are designed for different scenarios.
Use Mirroring when you want fabric to automatically sync your azure databricks data into one lake without building custom ingestion pipelines.
Use Shortcuts when you want to access the data directly from its existing location without creating another copy in one lake.
Thanks and regards,
Anjan Kumar Chippa
- fabricpribeiro
Post Patron
But can I do shorcuts to databricks? My question is specifically about databricks integration to Fabric. Because when I click on new shorcut I see some possibilities but I don't see the option to choose databricks ..
- v-achippa
Community Support
Hi fabricpribeiro,
Yes that is expected, there is no azure databricks option in the new shortcut menu because fabric does not support creating shortcuts directly to a databricks workspace.
Shortcuts are created to the underlying storage like for example ADLS Gen2, not to databricks itself.
If you want to integrate azure databricks with fabric, use Mirroring for supported unity catalog data, or create a shortcut to the supported underlying storage where the databricks data is stored.
Thanks and regards,
Anjan Kumar Chippa
- Srisakthi
Super User
Hi fabricpribeiro ,
Could you please explain what you are trying to achieve with the integration?
1. You just want to build reports on top of databricks data? - In this case i suggest you to take shortcuts on the underlying storage
2. You want to use databricks for compute and store data in Onelake? In this case, you can directly write to Fabric Lakehouse using similar scripts as you do for databricks to adls.
You can check my article for more information about the new preview feature
Zero - Copy feature if you want to access onelake tables in Azure Databricks