Skip to content

Commit d470d5b

Browse files
committed
Fix the issue of Spark Job submission on wasbs storage
Signed-off-by: Wei Zhang <[email protected]>
1 parent 5dfb656 commit d470d5b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Utils/hdinsight-node-common/src/com/microsoft/azure/hdinsight/sdk/cluster/ClusterDetail.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public class ClusterDetail implements IClusterDetail {
4747
private final String DefaultFS = "fs.defaultFS";
4848
private final String FSDefaultName = "fs.default.name";
4949
private final String StorageAccountKeyPrefix = "fs.azure.account.key.";
50-
private final String StorageAccountNamePattern = "^wasb://(.*)@(.*)$";
50+
private final String StorageAccountNamePattern = "^wasb[s]?://(.*)@(.*)$";
5151
private final String ResourceGroupStartTag = "resourceGroups/";
5252
private final String ResourceGroupEndTag = "/providers/";
5353

Utils/hdinsight-node-common/src/com/microsoft/azure/hdinsight/spark/jobs/JobUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ public static String uploadFileToAzure(@NotNull File file,
413413
}
414414

415415
String path = String.format("SparkSubmission/%s/%s", uploadFolderPath, file.getName());
416-
String uploadedPath = String.format("wasb://%s@%s/%s", defaultContainerName, blobStorageAccount.getFullStorageBlobName(), path);
416+
String uploadedPath = String.format("wasbs://%s@%s/%s", defaultContainerName, blobStorageAccount.getFullStorageBlobName(), path);
417417

418418
logSubject.onNext(new SimpleImmutableEntry<>(Info,
419419
String.format("Begin uploading file %s to Azure Blob Storage Account %s ...",

0 commit comments

Comments
 (0)