Forum Discussion
Notebook - mount a lakehouse fails
- Anonymous2 years ago
Hi frithjof_v ,
I failed at first with this code because the default timeout may not be enough, after increasing the timeout I succeeded:
notebookutils.fs.mount ( “abfss://<workspace_id>@msit-onelake.dfs.fabric.microsoft.com/<lakehouse_id>”, “/test”. {“timeout”: 600} )If you have any other questions please feel free to contact me.
Best Regards,
Yang
Community Support TeamIf there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
Hi frithjof_v ,
Use this command to mount lakehouse to the current notebook.
mssparkutils.fs.mount(“abfss://<workspace_id>@onelake.dfs.fabric.microsoft.com/<lakehouse_id>”, “/lakehouse/test”) #mountPoint such as '/lakehouse/default'
The successful mount is shown below:
You can also make sure that the mount is successful by executing this command below to list all the mount points.
mssparkutils.fs.mounts()
If you have any other questions please feel free to contact me.
Best Regards,
Yang
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
Thanks, it worked!
however MS recommends to upgrade to notebookutils instead of mssparkutils:
NotebookUtils (former MSSparkUtils) for Fabric - Microsoft Fabric | Microsoft Learn
I get an error when trying to do the mount using Notebookutils:
NotebookUtils (former MSSparkUtils) for Fabric - Microsoft Fabric | Microsoft Learn
Does this code work on your side?
- Anonymous2 years agoNot applicable
Hi frithjof_v ,
I failed at first with this code because the default timeout may not be enough, after increasing the timeout I succeeded:
notebookutils.fs.mount ( “abfss://<workspace_id>@msit-onelake.dfs.fabric.microsoft.com/<lakehouse_id>”, “/test”. {“timeout”: 600} )If you have any other questions please feel free to contact me.
Best Regards,
Yang
Community Support TeamIf there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!- frithjof_v2 years ago
Community Champion
Thanks!
It seems perhaps the default timeout of this function is too low, perhaps that it something which the dev team should adjust.
Thanks for showing the workaround!
- Anonymous2 years agoNot applicable
Hi frithjof_v ,
Could you please mark this helpful post as “Answered”?
This will help others in the community to easily find a solution if they are experiencing the same problem as you.
Thank you for your cooperation!
Best Regards,
Yang
Community Support TeamIf there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!