title: Submitting jobs with different parameters using command line databricks
body: <p>I have jar and an associated properties file. In order to run the jar, this is what I do on Databricks on Azure:</p>
  
  <p>I click on:</p>
  
  <pre><code>  +Create Job
  
        Task: com.xxx.sparkmex.core.ModelExecution in my.jar - Edit / Upload JAR / Remove
        Parameters: Edit
          Main Class: com.xxx.sparkmex.core.ModelExecution
          Arguments: ["-file","/dbfs/mnt/mypath/myPropertyFile.properties","-distributed"]
  
        Cluster: MyCluster 
  </code></pre>
  
  <p>and then I click <code>RunNow</code></p>
  
  <p>I am trying to achive the same using databricks cli </p>
  
  <p>This is what I am doing/want to do:</p>
  
  <p>1) upload the properties file </p>
  
  <pre><code>dbfs cp myPropertyFile.properties dbfs:/mnt/mypath/myPropertyFile.properties 
  </code></pre>
  
  <p>2) Create a job: <code>databricks jobs create</code> when I do this, it asks for a --jason-file. Where do I get the jason file from?</p>
  
  <p>3) Upload the jar file: how do I upload the jar file?</p>
  
  <p>4) Upload the property file: how do I upload the properties file? </p>
  
  <p>5) restart the cluster: <code>databricks clusters restart --cluster-id MYCLUSTERID</code></p>
  
  <p>6) Run the job </p>
  
  <p>and Repeat. The reason I want to repeat is that everytime I upload a new properties file with a different settings.
  I do not know how to do step 2 to 4 and step 5.</p>