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
Post a Comment