title: spark.driver.extraClassPath Multiple Jars
body: <p>I'm trying to use Spark via Python to access (via JDBC) a PostGres database and a MSSQL database in the same session. In the spark-defaults.conf file I can get one or the other to work but not both. </p>
  
  <p>These two work independently:</p>
  
  <pre><code>spark.driver.extraClassPath /Users/myusername/spark-1.6.1-bin-hadoop2.4/lib/postgresql-9.4.1208.jre6.jar
  
  spark.driver.extraClassPath /Users/myusername/spark-1.6.1-bin-hadoop2.4/lib/sqljdbc4.jar 
  </code></pre>
  
  <p>I tried these three and neither works (I get the "no suitable driver" error): </p>
  
  <pre><code>spark.driver.extraClassPath /Users/myusername/spark-1.6.1-bin-hadoop2.4/lib/
  
  spark.driver.extraClassPath /Users/myusername/spark-1.6.1-bin-hadoop2.4/lib/postgresql-9.4.1208.jre6.jar sqljdbc4.jar
  
  spark.driver.extraClassPath /Users/myusername/spark-1.6.1-bin-hadoop2.4/lib/postgresql-9.4.1208.jre6.jar /Users/myusername/spark-1.6.1-bin-hadoop2.4/lib/sqljdbc4.jar
  </code></pre>
  
  <p>Thanks in advance. </p>