What is the use of --driver-class-path in the spark command? -


as per spark docs,

to started need include jdbc driver particular database on spark classpath. example, connect postgres spark shell run following command:

bin/spark-shell --driver-class-path postgresql-9.4.1207.jar --jars postgresql-9.4.1207.jar 

job working fine without --driver-class-path. then, use of --driver-class-path in spark command?

--driver-class-path or spark.driver.extraclasspath can used modify class path spark driver. useful libraries not required executors (for example code used locally).

compared that, --jars or spark.jars not add jars both driver , executor classpath, distribute archives on cluster. if particular jar used driver unnecessary overhead.


Comments

Popular posts from this blog

inversion of control - Autofac named registration constructor injection -

verilog - Systemverilog dynamic casting issues -

ios - Change Storyboard View using Seague -