Skip to content

Commit a0408fa

Browse files
authored
Merge pull request #103563 from waqassiddiqi/patch-1
Update docs to use spark.Conf() instead of spark.SparkContext.GetConf()
2 parents 4b149c3 + 283798e commit a0408fa

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)