Skip to content

Commit

Permalink
Update Obtain credentials using TokenLibrary.ipynb
Browse files Browse the repository at this point in the history
  • Loading branch information
nirav2 authored Oct 12, 2020
1 parent bfe4c8f commit 916c88a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Notebooks/Scala/Obtain credentials using TokenLibrary.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,9 @@
"// For storage Gen2, linkedServiceName can be supplied through config for SAS-key based authentication (in lieu of account-key based authentication) \n",
"// Direct invokation of TokenLibrary is not required for obtaining creds and connection info\n",
"\n",
"val sc = spark.sparkContext\n",
"sc.hadoopConfiguration.set(\"spark.storage.synapse.linkedServiceName\", \"<linkedServiceName>\")\n",
"sc.hadoopConfiguration.set(\"fs.azure.account.auth.type\", \"SAS\")\n",
"sc.hadoopConfiguration.set(\"fs.azure.sas.token.provider.type\", \"com.microsoft.azure.synapse.tokenlibrary.LinkedServiceBasedSASProvider\")\n",
"spark.conf.set(\"spark.storage.synapse.linkedServiceName\", \"<linkedServiceName>\")\n",
"spark.conf.set(\"fs.azure.account.auth.type\", \"SAS\")\n",
"spark.conf.set(\"fs.azure.sas.token.provider.type\", \"com.microsoft.azure.synapse.tokenlibrary.LinkedServiceBasedSASProvider\")\n",
"\n",
"val df = spark.read.parquet(\"abfss://..\")"
],
Expand Down

0 comments on commit 916c88a

Please sign in to comment.