title: how to pass a date argument in a job spark using oozie
body: <p>I need to pass a date in my </p>
  
  <p><strong>workflow.xml</strong></p>
  
  <pre><code>    &lt;spark xmlns="uri:oozie:spark-action:0.1"&gt;
          &lt;job-tracker&gt;${jobTracker}&lt;/job-tracker&gt;
          &lt;name-node&gt;${nameNode}&lt;/name-node&gt;
          &lt;master&gt;yarn&lt;/master&gt;
          &lt;mode&gt;cluster&lt;/mode&gt;
          &lt;name&gt;Spark-workflow&lt;/name&gt;
          &lt;class&gt;Main&lt;/class&gt;
          &lt;jar&gt;${nameNode}/user/my_jar.jar&lt;/jar&gt;
          &lt;spark-opts&gt;
            --executor-memory 1G 
            --num-executors 4 
            --executor-cores 3
          &lt;/spark-opts&gt;
          &lt;arg&gt;--date 2017/02/01&lt;/arg&gt;
      &lt;/spark&gt;
      &lt;ok to="end" /&gt;
      &lt;error to="fail" /&gt;
  &lt;/action&gt;
  &lt;kill name="fail"&gt;
      &lt;message&gt;Workflow failed, error
          message[${wf:errorMessage(wf:lastErrorNode())}]
      &lt;/message&gt;
  &lt;/kill&gt;
  </code></pre>
  
  <p><strong>job.properties</strong></p>
  
  <pre><code> nameNode=hdfs://10.26.20.40:8020
   jobTracker=10.26.20.40:8021
   oozie.use.system.libpath=true
   oozie.wf.application.path=hdfs://10.26.20.40:8020/user/workflow.xml
   outputDir=mydir
  </code></pre>
  
  <p>but when i lunch the spark job with </p>
  
  <p>oozie job -oozie <a href="http://.../oozie" rel="nofollow noreferrer">http://.../oozie</a> -config /home/job.properties -run</p>
  
  <p>i have the error below : </p>
  
  <pre><code> Exception in thread "main" java.lang.NoSuchMethodError: org.apache.spark.util.Utils$.isInInterpreter()Z
      at org.apache.spark.Logging$class.initializeLogging(Logging.scala:124)
      at org.apache.spark.Logging$class.initializeIfNecessary(Logging.scala:106)
      at org.apache.spark.Logging$class.log(Logging.scala:50)
      at org.apache.spark.deploy.yarn.ApplicationMaster$.log(ApplicationMaster.scala:655)
      at org.apache.spark.deploy.yarn.ApplicationMaster$.main(ApplicationMaster.scala:670)
      at org.apache.spark.deploy.yarn.ApplicationMaster.main(ApplicationMaster.scala)
  </code></pre>
  
  <p>so, please how can i pass a date in a spark job using oozie?</p>