question

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

MOUNTING ADLS GEN2 ON SYNAPSE SPARK POOL

I want to mount datalake to specific mount point , want to read data from there , so i tried the below code

mssparkutils.fs.mount( source = "abfss://container@adls.dfs.core.windows.net/",
mountPoint = "/mnt/mdpdevfs",
extraConfigs = configs)

i tried giving all ways of authorization in configs , still im getting
"com.microsoft.spark.notebook.msutils.InvalidCredentialsException: Please provide at least one of LinkedService name, accountKey or sasToken for authorization." Error , how can i solve this?

azure-synapse-analyticsazure-databricksazure-data-lake-storagedotnet-ml-big-data
· 1
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.

Hello anonymous user,

Following up to see if the below suggestion was helpful. And, if you have any further query do let us know.


  • Please don't forget to click on 130616-image.png or upvote 130671-image.png button whenever the information provided helps you.

0 Votes 0 ·

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.

From the error message it clearly says that - "com.microsoft.spark.notebook.msutils.InvalidCredentialsException: Please provide at least one of LinkedService name, accountKey or sasToken for authorization"

145473-image.png

Currently these are the three authentication types are supported when trigger mount operation, via LinkeService, via accountKey and via sastoken.

145455-image.png

Method1: Using Linked Service

 mssparkutils.fs.mount(
     "abfss://<FILESYSTEMNAME>@<STORAGENAME>.dfs.core.windows.net/", #ADLS GEN 2 PATH
     "</MOUNTNAME>", #Mount Point Name
     { "linkedService" : "<REPLACE LINKED SERVICE NAME>"}
 )

Method2: Using SAS Token

 mssparkutils.fs.mount(
     "abfss://<FILESYSTEMNAME>@<STORAGENAME>.dfs.core.windows.net/", #ADLS GEN 2 PATH
     "</MOUNTNAME>", #Mount Point Name
     { "sasToken" : "<REPLACE SAS TOKEN KEY>"}
 )

Method3: Using Account Key

 mssparkutils.fs.mount(
     "abfss://<FILESYSTEMNAME>@<STORAGENAME>.dfs.core.windows.net/", #ADLS GEN 2 PATH
     "</MOUNTNAME>", #Mount Point Name
     { "accountKey" : "<REPLACE AACOUNT KEY>"}
 )

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 (91.2 KiB)
image.png (60.4 KiB)
· 1
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.

Hello anonymous user,

Just checking in to see if the above answer helped. If this answers your query, do click Accept Answer and Up-Vote for the same. And, if you have any further query do let us know.

0 Votes 0 ·