Did anyone had luck connecting from Azure Synapse Analytics provisioned Spark Pool to Azure SQL Database?
Problem 1:
I've uploaded the Spark SQL Connector https://github.com/microsoft/sql-spark-connector as a Workspace Library and linked to the Spark Pool. Installing this causes an error when trying to start Spark Pool Session. I get a Livy error. In the Monitor section the error is :
This application failed due to the total number of errors: 1.
Error code 1
LIBRARY_MANAGEMENT_FAILED
Message
[...] Cleaning up the Spark service job because the cluster has failed.
Edit: This actually works on another Spark Pool for no reason. I don't know the root cause but I was able to run this on another pool.
Problem 2: I'm trying to use the TokenLibrary with Azure SQL Linked Service. This code:
conn = TokenLibrary.getConnectionString("MyAzureSQLDev")
print(conn)
Displays something that looks like Base64-encrypted JWT token plus some unknown characters. This is not a connection string.
I am looking for any working solution.