Skip to content

Commit 283798e

Browse files
authored
Update docs to use spark.Conf() instead of spark.SparkContext.GetConf()
spark.SparkContext.GetConf() doesn't set the configurations, spark.Conf() should be used instead.
1 parent f4e2317 commit 283798e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

articles/synapse-analytics/spark/microsoft-spark-utilities.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ var blob_relative_path = ""; // replace with your relative folder path
122122
var linked_service_name = ""; // replace with your linked service name
123123
var blob_sas_token = Credentials.GetConnectionStringOrCreds(linked_service_name);
124124

125-
spark.SparkContext.GetConf().Set($"fs.azure.sas.{blob_container_name}.{blob_account_name}.blob.core.windows.net", blob_sas_token);
125+
spark.Conf().Set($"fs.azure.sas.{blob_container_name}.{blob_account_name}.blob.core.windows.net", blob_sas_token);
126126

127127
var wasbs_path = $"wasbs://{blob_container_name}@{blob_account_name}.blob.core.windows.net/{blob_relative_path}";
128128

0 commit comments

Comments
 (0)