[ 
https://issues.apache.org/jira/browse/MAPREDUCE-5779?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

wxlfight reassigned MAPREDUCE-5779:
-----------------------------------

    Assignee: Alan Hudson

Can you help me with this 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
>            Assignee: Alan Hudson
>
> 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