|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Protocol that a TaskTracker and the central JobTracker use to communicate. The JobTracker is the Server, which implements this protocol.
Field Summary | |
static int |
TRACKERS_OK
|
static int |
UNKNOWN_TASKTRACKER
|
Method Summary | |
IntWritable |
emitHeartbeat(TaskTrackerStatus status,
BooleanWritable initialContact)
Called regularly by the task tracker to update the status of its tasks within the job tracker. |
String |
getFilesystemName()
The task tracker calls this once, to discern where it can find files referred to by the JobTracker |
MapOutputLocation[] |
locateMapOutputs(String taskId,
String[] mapTasksNeeded)
Called by a reduce task to find which map tasks are completed. |
String |
pollForClosedTask(String trackerName)
Called to find which tasks that have been run by this tracker are now closed, i.e., their job is complete. |
Task |
pollForNewTask(String trackerName)
Called to get new tasks from from the job tracker for this tracker. |
Field Detail |
public static final int TRACKERS_OK
public static final int UNKNOWN_TASKTRACKER
Method Detail |
public IntWritable emitHeartbeat(TaskTrackerStatus status, BooleanWritable initialContact)
public Task pollForNewTask(String trackerName)
public String pollForClosedTask(String trackerName)
public MapOutputLocation[] locateMapOutputs(String taskId, String[] mapTasksNeeded)
taskId
- the reduce task idmapTasksNeeded
- an array of UTF8 naming map task ids whose output is needed.
public String getFilesystemName() throws IOException
IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |