You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mapreduce-issues@hadoop.apache.org by "wxlfight (JIRA)" <ji...@apache.org> on 2014/03/05 10:20:42 UTC
[jira] [Created] (MAPREDUCE-5779) Hadoop1.0.2 : JobControl.run()
Never stop
wxlfight created MAPREDUCE-5779:
-----------------------------------
Summary: 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)