Closed girimedi closed 2 years ago
I have no experience with AWS Glue, but in principle, note that there are different versions of this connector to match different Spark runtime versions. I do not know what version of Spark is provided by the Glue runtime - but do match that to the versions we provide for this connector on Maven:
was finally able to get it to work. This made it work for me
under Dependent JARs path: s3://{mys3bucketlocation}/mssql-jdbc-9.2.1.jre8.jar,s3://{mys3bucketlocation}/spark-mssql-connector_2.12-1.2.0.jar
job parameters: --user-jars-first set to true
spark session: spark = glueContext.spark_session.builder.config("spark.jars", "s3://{mys3bucketlocation}/mssql-jdbc-9.2.1.jre8.jar,s3://{mys3bucketlocation}/spark-mssql-connector_2.12-1.2.0.jar").config("spark.jars.packages","com.microsoft.sqlserver.jdbc.SQLServerDriver,com.microsoft.azure:spark-mssql-connector_2.12:1.2.0").getOrCreate()
I have previous got mutliple errors. I now added builder.config('spark.jars.packages','com.microsoft.azure:spark-mssql-connector:1.0.2') to spark session builder and got this error.
I have connector jar and mssql-jdbc-8.4.1.jre8.jar in my jars path.
Is anyone here successful in getting this to work on aws glue?
Was anyone here able to successfully use this connector for glue job ?