Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
MapReduce >> mail # user >> Starting a Hadoop job programtically


Copy link to this message
-
Re: Starting a Hadoop job programtically
On 11/22/2010 04:39 PM, [EMAIL PROTECTED] wrote:
> Hi all, I am trying to figure how I can start a hadoop job
> porgramatically from my Java application running in an app server. I
> was able to run my map reduce job using hadoop command from hadoop
> master machine but my goal is to run the same job from my java
> program (running on a different machine than master). I googled and
> could not find solution for this. All the examples I have seen so far
> are using hadoop from command line to start a job.
>
> 1. Has anyone called Hadoop job invocation from a Java application?
> 2. If so, could someone provide some sample code. 3.
>
> Thanks Praveen

http://hadoop.apache.org/common/docs/r0.20.1/api/org/apache/hadoop/mapreduce/Job.html#submit%28%29