title: Submit Hadoop Jar through Java program
body: <p>I am new to Hadoop. Our team is writing a hadoop job scheduler. Currently I have hadoop well installed. I can submit Hadoop job in the command line using </p>
  
  <pre><code>hadoop jar wordcount.jar input output
  </code></pre>
  
  <p>Now I want to run this command in a java program. In other words, using java to do the same thing as <code>hadoop jar wordcount.jar input output</code>. Is there any API I can call to submit jobs from Java?</p>