-
-
Save BrendanThompson/f8197491b19c192f42658c8936c6778d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val appID = "<appID>" | |
val secret = "<secret>" | |
val tenantID = "<tenant-id>" | |
spark.conf.set("fs.azure.account.auth.type", "OAuth") | |
spark.conf.set("fs.azure.account.oauth.provider.type", "org.apache.hadoop.fs.azurebfs.oauth2.ClientCredsTokenProvider") | |
spark.conf.set("fs.azure.account.oauth2.client.id", "<appID>") | |
spark.conf.set("fs.azure.account.oauth2.client.secret", "<secret>") | |
spark.conf.set("fs.azure.account.oauth2.client.endpoint", "https://login.microsoftonline.com/<tenant-id>/oauth2/token") | |
spark.conf.set("fs.azure.createRemoteFileSystemDuringInitialization", "true") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment