question

$$ANON_USER$$ avatar image
0 Votes"
$$ANON_USER$$ asked PRADEEPCHEEKATLA-MSFT commented

Get all Mount points on Synapse Spark

hi , I mounted ADLS on "/mnt/mdpdevfs" , hwo do i get all mount points , when i try display(mssparkutils.fs.mounts()) im getting thsi error - AttributeError: module 'notebookutils.mssparkutils.fs' has no attribute 'mounts' . ![146920-capture.png][1] ![146860-capture.png][2] ![146971-capture.png][3] [1]: /answers/storage/attachments/146920-capture.png [2]: /answers/storage/attachments/146860-capture.png [3]: /answers/storage/attachments/146971-capture.png

azure-synapse-analyticsdotnet-ml-big-data
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

PRADEEPCHEEKATLA-MSFT avatar image
0 Votes"
PRADEEPCHEEKATLA-MSFT answered PRADEEPCHEEKATLA-MSFT commented

Hello anonymous user,

Thanks for the question and using MS Q&A platform.

synfs will be used as schema instead of part of mounted path.

Example assuming you trigger to mountname chepraadlsgen2.

- Access the data using local file API, the path format like: /synfs/{jobId}/mountname/{filename}
- Access the data using mounted path with mssparkutils fs API, the path will little difference and like: synfs:/{jobId}/mountname/{filename}

147234-image.png

Hope this will help. Please let us know if any further queries.


  • Please don't forget to click on 130616-image.png or upvote 130671-image.png button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how

  • Want a reminder to come back and check responses? Here is how to subscribe to a notification

  • If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators


image.png (78.1 KiB)
· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thank you , 1) how do i get all mount points , if i mounted multiple storage accounts. display(mssparkutils.fs.mounts()) is not working. 2) how do i unmount these points ,when i try to execute below command , im getting true . but still able to use that mount point mssparkutils.fs.unmount("synfs:/13/mnt/mdpdevfs") 3)using mounted path , its working but using local file API , its throwing error![147236-capture.png][1]![147159-capture.png][2] [1]: /answers/storage/attachments/147236-capture.png [2]: /answers/storage/attachments/147159-capture.png

0 Votes 0 ·

Hello anonymous user,

Regarding get all the mount points, we are working with the internal team. I will be update you once I hear back from the team.

You can use this command to unmount the mount point: mssparkutils.fs.unmount("/mountname")

147238-image.png


0 Votes 0 ·
image.png (25.6 KiB)
$$ANON_USER$$ avatar image $$ANON_USER$$ PRADEEPCHEEKATLA-MSFT ·

yeah unmount api working but it taking some time , thank you for your response

0 Votes 0 ·
Show more comments