title: Passing multiple system properties to spark-submit
body: <p>I am trying to run a Spark job using spark-submit in Windows. I am executing the below spark-submit command from command prompt.</p>
  
  <blockquote>
    <p>spark-submit <strong>--driver-class-path</strong> %FILE_NAME%\config 
    <strong>--files</strong> %FILE_NAME%\config\app.conf,%FILE_NAME%\config\log4j.properties <strong>--conf</strong>
    "spark.driver.extraJavaOptions=-Dcassandra.username=cassandra
    -Dcassandra.password=cassandra@123" <strong>--class</strong> com.sapient.main.MainApp %FILE_NAME%\lib\test.jar</p>
  </blockquote>
  
  <p>Here, I am trying to pass two system properties using <code>spark.driver.extraJavaOptions</code> one is <code>cassandra.username</code> and other is <code>cassandra.password</code> but on executing the command, I am getting below error</p>
  
  <pre><code>The input line is too long.
  </code></pre>
  
  <p>However, if I pass only one system property to <code>extraJavaOptions</code> and without double quotes <code>""</code> like below, then everything works fine.</p>
  
  <pre><code> --conf spark.driver.extraJavaOptions=-Dcassandra.username=cassandra
  </code></pre>
  
  <p>But I need to pass 2 system properties. How can I resolve this? Also let me know if there is another way to pass system properties to spark which could avoid this issue.</p>
  
  <p><strong>Note:</strong> It runs in linux environment.</p>