Skip to content

Commit d956ca7

Browse files
authored
Merge pull request #31252 from pashetty/patch-1
Update databricks-extract-load-sql-data-warehouse.md
2 parents 0bf3f9b + 87cfabb commit d956ca7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

articles/azure-databricks/databricks-extract-load-sql-data-warehouse.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -145,11 +145,11 @@ In this section, you create a notebook in Azure Databricks workspace and then ru
145145
5. Copy and paste the following code block into the first cell.
146146

147147
```scala
148-
spark.conf.set("fs.azure.account.auth.type.<storage-account-name>.dfs.core.windows.net", "OAuth")
149-
spark.conf.set("fs.azure.account.oauth.provider.type.<storage-account-name>.dfs.core.windows.net", "org.apache.hadoop.fs.azurebfs.oauth2.ClientCredsTokenProvider")
150-
spark.conf.set("fs.azure.account.oauth2.client.id.<storage-account-name>.dfs.core.windows.net", "<application-id>")
151-
spark.conf.set("fs.azure.account.oauth2.client.secret.<storage-account-name>.dfs.core.windows.net", "<authentication-key>")
152-
spark.conf.set("fs.azure.account.oauth2.client.endpoint.<storage-account-name>.dfs.core.windows.net", "https://login.microsoftonline.com/<tenant-id>/oauth2/token")
148+
spark.conf.set("fs.azure.account.auth.type", "OAuth")
149+
spark.conf.set("fs.azure.account.oauth.provider.type", "org.apache.hadoop.fs.azurebfs.oauth2.ClientCredsTokenProvider")
150+
spark.conf.set("fs.azure.account.oauth2.client.id", "<application-id>")
151+
spark.conf.set("fs.azure.account.oauth2.client.secret", "<authentication-key>")
152+
spark.conf.set("fs.azure.account.oauth2.client.endpoint", "https://login.microsoftonline.com/<tenant-id>/oauth2/token")
153153
spark.conf.set("fs.azure.createRemoteFileSystemDuringInitialization", "true")
154154
dbutils.fs.ls("abfss://<file-system-name>@<storage-account-name>.dfs.core.windows.net/")
155155
spark.conf.set("fs.azure.createRemoteFileSystemDuringInitialization", "false")

0 commit comments

Comments
 (0)