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 May 12, 2020
1 parent dfdbc9b commit 21028da
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Notebooks/Scala/Obtain credentials using TokenLibrary.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,7 @@
"metadata": {},
"source": [
"// While Gen2 is the default storage for Synapse, AAD passthrough support exists for Gen1 as well\n",
"// However, couple of configuration parameters have to be set\n",
"\n",
"sc.hadoopConfiguration.set(\"fs.adl.oauth2.access.token.provider.type\", \"Custom\")\n",
"sc.hadoopConfiguration.set(\"fs.adl.oauth2.access.token.provider\", \"com.microsoft.azure.synapse.tokenlibrary.SessionTokenBasedTokenProviderGen1\")\n",
"val df = spark.read.parquet(\"adl://\")"
],
"attachments": {}
Expand Down Expand Up @@ -81,4 +78,4 @@
"attachments": {}
}
]
}
}

0 comments on commit 21028da

Please sign in to comment.