[ 
https://issues.apache.org/jira/browse/MAPREDUCE-5779?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13921051#comment-13921051
 ] 

Alan Hudson commented on MAPREDUCE-5779:
----------------------------------------

I'm not part of this project so can't help you with the problem.





> Hadoop1.0.2 : JobControl.run() Never stop
> -----------------------------------------
>
>                 Key: MAPREDUCE-5779
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-5779
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>            Reporter: wxlfight
>
> My hadoop version:1.0.2
> I wonder why when I call run() on a JobControl object, it loops forever .
> Namely, this code doesn't work:
> JobControl jobControl = new JobControl("Name");
> // some stuff here (add jobs and dependencies)
> jobControl.run();
> This code works but looks a bit ugly:
> JobControl jobControl = new JobControl("Name");
> // some stuff here (add jobs and dependencies)
> Thread control = new Thread(jobControl);
> control.start();
> while (!jobControl.allFinished()) {
>     try {
>         Thread.sleep(5000);
>     }
>     catch (Exception e) {}
> }



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to