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
hadoop jar wordcount.jar input output
Now I want to run this command in a java program. In other words, using java to do the same thing as hadoop jar wordcount.jar input output
. Is there any API I can call to submit jobs from Java?