|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.nutch.mapReduce.TaskTracker
TaskTracker is a process that starts and tracks MR Tasks in a networked environment. It contacts the JobTracker for Task assignments and reporting results.
Nested Class Summary | |
static class |
TaskTracker.Child
The main() for child processes. |
Field Summary | |
static Logger |
LOG
|
Fields inherited from interface org.apache.nutch.mapReduce.MRConstants |
FILE_NOT_FOUND, HEARTBEAT_INTERVAL, SUCCESS, TASKTRACKER_EXPIRY_INTERVAL |
Constructor Summary | |
TaskTracker()
Start with the local machine name, and the default JobTracker |
|
TaskTracker(InetSocketAddress jobTrackAddr)
Start with the local machine name, and the addr of the target JobTracker |
Method Summary | |
void |
close()
Close down the TaskTracker and all its components. |
void |
done(String taskid)
The task is done. |
MapOutputFile |
getFile(String mapTaskId,
String reduceTaskId,
IntWritable partition)
Returns the output from the named map task destined for this partition. |
InterTrackerProtocol |
getJobClient()
The connection to the JobTracker, used by the TaskRunner for locating remote files. |
Task |
getTask(String taskid)
Called upon startup by the child process, to fetch Task data. |
static void |
main(String[] argv)
Start the TaskTracker, point toward the indicated JobTracker |
void |
progress(String taskid,
FloatWritable progress)
Called periodically to report Task progress, from 0.0 to 1.0. |
void |
run()
The server retry loop. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final Logger LOG
Constructor Detail |
public TaskTracker() throws IOException
public TaskTracker(InetSocketAddress jobTrackAddr) throws IOException
Method Detail |
public void close() throws IOException
IOException
public InterTrackerProtocol getJobClient()
public void run()
run
in interface Runnable
public MapOutputFile getFile(String mapTaskId, String reduceTaskId, IntWritable partition)
MapOutputProtocol
getFile
in interface MapOutputProtocol
public Task getTask(String taskid) throws IOException
getTask
in interface TaskUmbilicalProtocol
IOException
public void progress(String taskid, FloatWritable progress) throws IOException
progress
in interface TaskUmbilicalProtocol
progress
- value between zero and one
IOException
public void done(String taskid) throws IOException
done
in interface TaskUmbilicalProtocol
IOException
public static void main(String[] argv) throws IOException
IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |