MS Spark SQL Connector AD Integration Error

Dinesh Balachandran 56 Reputation points

We have been using Azure Synapse notebooks to connect and load some data from Azure SQL. We were using the SQL Authentication Model and were looking to use the Azure SQL Spark Connector to use AD

While we were able to use the examples to get the code working via Service Principal Token model. We get the following error when trying to use the AD Password mode.

Py4JJavaError: An error occurred while calling o2293.load. : java.lang.NoClassDefFoundError: com/nimbusds/oauth2/sdk/auth/ClientAuthentication

Any inputs are greatly appreciated

I had posted the snapshot of the code in the comments

jdbc_df ="").option("url", "jdbc:sqlserver://") \
.option("dbtable", "dbo.MyTable").option("authentication", "ActiveDirectoryPassword") \
.option("user","").option("password", "XXXXXXXXXXXX").option("encrypt", "true")\
.option("hostNameInCertificate", "*")\
.option("driver", "")\
Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
4,447 questions
{count} vote