You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mapreduce-user@hadoop.apache.org by Daniel Klinger <dk...@web-computing.de> on 2016/04/27 12:14:46 UTC
Start MapReduce job with jar and arguments programatically
Hi,
i know i can start hadoop jobs like this:
hadoop jar myJob.jar org.foo.bar.MainClass --arg1 foo --arg2 bar
Now I would like to do this by JAVA-Code. My App is running within the
cluster and is started including the whole Hadoop-classpath. How can I start
the job by jar (found something with setJar but no explanation) and
especially how can I pass arguments like I would do in the console?
Kind regards
Daniel
Re: Start MapReduce job with jar and arguments programatically
Posted by Siddhisanket Raskar <sr...@udel.edu>.
Hi,
Why not write simple bash script for this. I understand, this not exactly
the answer for your question but unless you have to use java code, its not
bad option.
Regards,
S
id
Raskar.
On Wed, Apr 27, 2016 at 6:29 AM, Ashutosh Kumar <as...@gmail.com>
wrote:
>
> http://www.drdobbs.com/database/hadoop-writing-and-running-your-first-pr/240153197?pgno=2
>
Re: Start MapReduce job with jar and arguments programatically
Posted by Ashutosh Kumar <as...@gmail.com>.
http://www.drdobbs.com/database/hadoop-writing-and-running-your-first-pr/240153197?pgno=2
Re: Start MapReduce job with jar and arguments programatically
Posted by Ashutosh Kumar <as...@gmail.com>.
http://www.drdobbs.com/database/hadoop-writing-and-running-your-first-pr/240153197?pgno=2
Re: Start MapReduce job with jar and arguments programatically
Posted by Ashutosh Kumar <as...@gmail.com>.
http://www.drdobbs.com/database/hadoop-writing-and-running-your-first-pr/240153197?pgno=2
Re: Start MapReduce job with jar and arguments programatically
Posted by Ashutosh Kumar <as...@gmail.com>.
http://www.drdobbs.com/database/hadoop-writing-and-running-your-first-pr/240153197?pgno=2