hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcos M Rubinelli <marc...@buscape-inc.com>
Subject Re: program api to run jar file instead of using shell
Date Mon, 23 May 2011 13:34:31 GMT
Lac,

You can call RunJar.main ( 
http://hadoop.apache.org/common/docs/r0.20.2/api/org/apache/hadoop/util/RunJar.html 
) and pass the command-line arguments, which is essentially what happens 
when you invoke "hadoop jar". If you intend to submit mapreduce jobs, 
you should probably take a look at 
http://hadoop.apache.org/common/docs/r0.20.2/api/org/apache/hadoop/mapreduce/Job.html 
and (if you are using the older mapred API) 
http://hadoop.apache.org/common/docs/r0.20.2/api/org/apache/hadoop/mapred/JobClient.html 


In 22-05-2011 15:25, Lạc Trung wrote:
> I want to program an api (java )  to run the file jar instead of using
> shell. Can anyone tell me a way to do this ?
>
> Thanks so much !
Good luck,
Marcos

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message