Correct, you can use java -jar to submit a job...with the "driver" code in
a plain static main method. I do it all the time. You can of course run a
Job straight from your IDE Java code also. You can check out the .runJar()
method in the Hadoop API Javadoc to see what the hadoop command does
essentially I think.

Cheers,
Bj


On Sat, Apr 13, 2013 at 3:59 PM, Jens Scheidtmann <
jens.scheidtm...@gmail.com> wrote:

> Dear Vjeran,
>
> your own jobs should implement the Tool Interface and ToolRunner. This
> gives additional standard options on the command line.
>
> Also have a look at class ProgramDriver as used here:
> https://svn.apache.org/repos/asf/hadoop/common/trunk/hadoop-mapreduce-project/hadoop-mapreduce-examples/src/main/java/org/apache/hadoop/examples/ExampleDriver.java
>
> which further simplifies executing your MR jobs.
>
> Best regards,
>
> Jens
>

Reply via email to