sqoop-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 呂佳鴻 <chiahung1...@gmail.com>
Subject Re: sqoop 1.99.3 Java api check submission status
Date Sat, 13 Dec 2014 12:22:32 GMT
I can run it successfully(from mysql to hdfs) .
When I use java to submit  ,I  only can check job status on client shell .
(can't check job status with java api i mentioned above)
How can i  synchronous submission with java api method ?
Thanks!

On Sat Dec 13 2014 at 上午10:49:23 Abraham Elmahrek <abe@cloudera.com> wrote:

> It doesn't sound like your mapreduce job is actually progressing. You can
> wait by running a synchronous submission: 'start job --jid 1 -s'.
>
>
> http://sqoop.apache.org/docs/1.99.3/CommandLineClient.html#start-job-function
>
>
> On Fri, Dec 12, 2014 at 9:52 AM, 呂佳鴻 <chiahung1227@gmail.com> wrote:
>>
>> hi,
>> i try the job submission sample (
>> http://sqoop.apache.org/docs/1.99.3/ClientAPI.html)
>>
>> System.out.println("Progress : " + String.format("%.2f %%", submission.getProgress()
* 100));
>>
>> why the submission.getProgress()  just turn the value 0 back ? (i put it
>> in while loop )
>> how can i that the program wait until it finish the mapreduce job?
>>
>> thanks!
>>
>

Mime
View raw message