I've recently created a spark pool in Azure Synapse Analytics. However, when i try to run a notebook, i got this error:
Spark_Ambiguous_SparkSubmit_SparkSubmitProcessFailedExitCode1: Livy session has failed. Session state: Dead. Error code: Spark_Ambiguous_SparkSubmit_SparkSubmitProcessFailedExitCode1. Job failed during run time with state=[dead]. TSG:spark-submit process failed with exit code 1. Check Livy logs for more information. Source: Unknown.
In the monitoring view, these logs are shown:
at com.microsoft.azure.storage.core.StorageRequest.materializeException(StorageRequest.java:315)
at com.microsoft.azure.storage.core.ExecutionEngine.executeWithRetry(ExecutionEngine.java:185)
at com.microsoft.azure.storage.blob.CloudBlob.exists(CloudBlob.java:1994)
at com.microsoft.azure.storage.blob.CloudBlob.exists(CloudBlob.java:1981)
at org.apache.hadoop.fs.azure.StorageInterfaceImpl$CloudBlobWrapperImpl.exists(StorageInterfaceImpl.java:333)
at org.apache.hadoop.fs.azure.AzureNativeFileSystemStore.retrieveMetadata(AzureNativeFileSystemStore.java:2200)
... 17 more
stderr:
YARN Diagnostics:
org.apache.livy.utils.submit.exceptions.SparkSubmitProcessFailedException: spark-submit exited with non-zero status : exit code 1
Vector(stdout: , Picked up _JAVA_OPTIONS: -Djava.io.tmpdir=/mnt/tmp, Picked up _JAVA_OPTIONS: -Djava.io.tmpdir=/mnt/tmp, Exception in thread "main" org.apache.hadoop.fs.azure.AzureException: com.microsoft.azure.storage.StorageException: This request is not authorized to perform this operation., at org.apache.hadoop.fs.azure.AzureNativeFileSystemStore.retrieveMetadata(AzureNativeFileSystemStore.java:2265), at org.apache.hadoop.fs.azure.NativeAzureFileSystem.getAncestor(NativeAzureFileSystem.java:3017), at org.apache.hadoop.fs.azure.NativeAzureFileSystem.mkdirs(NativeAzureFileSystem.java:3043), at org.apache.hadoop.fs.azure.NativeAzureFileSystem.mkdirs(NativeAzureFileSystem.java:3030), at org.apache.hadoop.fs.FileSystem.mkdirs(FileSystem.java:2388), at org.apache.hadoop.fs.FileSystem.mkdirs(FileSystem.java:750), at org.apache.spark.deploy.yarn.Client.prepareLocalResources(Client.scala:526), at org.apache.spark.deploy.yarn.Client.createContainerLaunchContext(Client.scala:1026), at org.apache.spark.deploy.yarn.Client.submitApplication(Client.scala:223), at org.apache.spark.deploy.yarn.Client.run(Client.scala:1381), at org.apache.spark.deploy.yarn.YarnClusterApplication.start(Client.scala:1837), at org.apache.spark.deploy.SparkSubmit.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:1027), at org.apache.spark.deploy.SparkSubmit.doRunMain$1(SparkSubmit.scala:193), at org.apache.spark.deploy.SparkSubmit.submit(SparkSubmit.scala:216), at org.apache.spark.deploy.SparkSubmit.doSubmit(SparkSubmit.scala:92), at org.apache.spark.deploy.SparkSubmit$$anon$2.doSubmit(SparkSubmit.scala:1118), at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:1127), at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala), Caused by: com.microsoft.azure.storage.StorageException: This request is not authorized to perform this operation., at com.microsoft.azure.storage.StorageException.translateException(StorageException.java:87), at com.microsoft.azure.storage.core.StorageRequest.materializeException(StorageRequest.java:315), at com.microsoft.azure.storage.core.ExecutionEngine.executeWithRetry(ExecutionEngine.java:185), at com.microsoft.azure.storage.blob.CloudBlob.exists(CloudBlob.java:1994), at com.microsoft.azure.storage.blob.CloudBlob.exists(CloudBlob.java:1981), at org.apache.hadoop.fs.azure.StorageInterfaceImpl$CloudBlobWrapperImpl.exists(StorageInterfaceImpl.java:333), at org.apache.hadoop.fs.azure.AzureNativeFileSystemStore.retrieveMetadata(AzureNativeFileSystemStore.java:2200), ... 17 more,
stderr: ,
YARN Diagnostics: )