title: Adding JDBC driver to AWS Glue for existing Spark code
body: <p>I am trying to run existing Spark (Scala) code on AWS Glue.</p>
  <p>This code uses <code>spark.read.option(&quot;jdbc&quot;)</code> and I have been adding the JDBC driver to the Spark classpath with the <code>spark.driver.extraClassPath</code> option.</p>
  <p>This works fine locally as well as on EMR, assuming I can copy the driver from S3 to the instances first with a bootstrap action.</p>
  <p>But what's the equivalent on Glue?  If I add the driver to the &quot;dependent JARs&quot; option, it doesn't work and I get the &quot;no suitable driver&quot; error, presumably because the JAR must be visible to Spark's own classloader.</p>