title: What is the use of --driver-class-path in the spark command?
body: <p>As per spark <a href="http://spark.apache.org/docs/latest/sql-programming-guide.html#jdbc-to-other-databases" rel="noreferrer">docs</a>, </p>
  
  <blockquote>
    <p>To get started you will need to include the JDBC driver for you particular database on the spark classpath. For example, to connect to postgres from the Spark Shell you would run the following command:</p>
  </blockquote>
  
  <pre><code>bin/spark-shell --driver-class-path postgresql-9.4.1207.jar --jars postgresql-9.4.1207.jar
  </code></pre>
  
  <p><strong>Job is working fine without <code>--driver-class-path</code></strong>. Then, what is the use of <code>--driver-class-path</code> in the spark command?</p>