You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-user@hadoop.apache.org by Gang Luo <lg...@yahoo.com.cn> on 2010/05/12 17:00:06 UTC

submit multiple jobs simultaneously

Hi,
when we call JobClient.runJob(jobConf) to submit a job, will the program block until that job finishes? How to submit multiple job simultaneously? Multithreading?

thanks,
-Gang



      

Re: submit multiple jobs simultaneously

Posted by Jeff Zhang <zj...@gmail.com>.
The returned object of JobClient.submitJob(JobConf job) is RunningJob.
You can get the job status through this object.



2010/5/12 Gang Luo <lg...@yahoo.com.cn>:
> Thanks Oded, it works. But there is not output showing the consumed time, counters, etc. How can I get those information?
>
> thanks,
> -Gang
>
>
>
>
> ----- 原始邮件 ----
> 发件人: Oded Rotem <od...@gmail.com>
> 收件人: common-user@hadoop.apache.org
> 发送日期: 2010/5/12 (周三) 11:06:55 上午
> 主   题: RE: submit multiple jobs simultaneously
>
> Run JobClient.submitJob instead of runJob.
>
> -----Original Message-----
> From: Gang Luo [mailto:lgpublic@yahoo.com.cn]
> Sent: Wednesday, May 12, 2010 6:00 PM
> To: common-user@hadoop.apache.org
> Subject: submit multiple jobs simultaneously
>
> Hi,
> when we call JobClient.runJob(jobConf) to submit a job, will the program block until that job finishes? How to submit multiple job simultaneously? Multithreading?
>
> thanks,
> -Gang
>
>
>
>



-- 
Best Regards

Jeff Zhang

Re: submit multiple jobs simultaneously

Posted by Gang Luo <lg...@yahoo.com.cn>.
Thanks Oded, it works. But there is not output showing the consumed time, counters, etc. How can I get those information?

thanks,
-Gang




----- 原始邮件 ----
发件人: Oded Rotem <od...@gmail.com>
收件人: common-user@hadoop.apache.org
发送日期: 2010/5/12 (周三) 11:06:55 上午
主   题: RE: submit multiple jobs simultaneously

Run JobClient.submitJob instead of runJob.

-----Original Message-----
From: Gang Luo [mailto:lgpublic@yahoo.com.cn] 
Sent: Wednesday, May 12, 2010 6:00 PM
To: common-user@hadoop.apache.org
Subject: submit multiple jobs simultaneously

Hi,
when we call JobClient.runJob(jobConf) to submit a job, will the program block until that job finishes? How to submit multiple job simultaneously? Multithreading?

thanks,
-Gang


      

RE: submit multiple jobs simultaneously

Posted by Oded Rotem <od...@gmail.com>.
Run JobClient.submitJob instead of runJob.

-----Original Message-----
From: Gang Luo [mailto:lgpublic@yahoo.com.cn] 
Sent: Wednesday, May 12, 2010 6:00 PM
To: common-user@hadoop.apache.org
Subject: submit multiple jobs simultaneously

Hi,
when we call JobClient.runJob(jobConf) to submit a job, will the program block until that job finishes? How to submit multiple job simultaneously? Multithreading?

thanks,
-Gang