|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.nutch.mapReduce.JobTracker
JobTracker is the central location for submitting and tracking MR jobs in a network environment.
Nested Class Summary | |
class |
JobTracker.JobInProgress
|
Field Summary | |
static Logger |
LOG
|
static JobTracker |
tracker
|
Fields inherited from interface org.apache.nutch.mapReduce.MRConstants |
FILE_NOT_FOUND, HEARTBEAT_INTERVAL, SUCCESS, TASKTRACKER_EXPIRY_INTERVAL |
Fields inherited from interface org.apache.nutch.mapReduce.InterTrackerProtocol |
TRACKERS_OK, UNKNOWN_TASKTRACKER |
Method Summary | |
Vector |
completedJobs()
|
static void |
createTracker()
|
static void |
createTracker(InetSocketAddress addr)
|
IntWritable |
emitHeartbeat(TaskTrackerStatus trackerStatus,
BooleanWritable initialContact)
Process incoming heartbeat messages from the task trackers. |
Vector |
failedJobs()
|
static InetSocketAddress |
getDefaultAddress()
|
String |
getFilesystemName()
The task tracker calls this once, to discern where it can find files referred to by the JobTracker |
JobTracker.JobInProgress |
getJob(String jobid)
|
JobProfile |
getJobProfile(String jobid)
Grab a handle to a job that is already known to the JobTracker |
JobStatus |
getJobStatus(String jobid)
Grab a handle to a job that is already known to the JobTracker |
String |
getJobTrackerMachine()
|
long |
getStartTime()
|
TaskTrackerStatus |
getTaskTracker(String trackerID)
|
int |
getTotalSubmissions()
|
static JobTracker |
getTracker()
|
int |
getTrackerPort()
|
void |
initialize(String taskTrackerName)
|
void |
killJob(String jobid)
Kill the indicated job |
MapOutputLocation[] |
locateMapOutputs(String taskId,
String[] mapTasksNeeded)
A tracker wants to know the physical locations of completed, but not yet closed, tasks. |
static void |
main(String[] argv)
Start the JobTracker process. |
void |
offerService()
Run forever |
String |
pollForClosedTask(String trackerName)
A tracker wants to know if any of its Tasks have been closed (because the job completed, whether successfully or not) |
Task |
pollForNewTask(String trackerName)
A tracker wants to know if there's a Task to run |
Vector |
runningJobs()
|
JobStatus |
submitJob(String jobFile)
Submit a Job for execution. |
Collection |
taskTrackers()
|
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
public static JobTracker tracker
Method Detail |
public static void createTracker() throws IOException
IOException
public static void createTracker(InetSocketAddress addr) throws IOException
IOException
public static JobTracker getTracker()
public static InetSocketAddress getDefaultAddress()
public void offerService()
public int getTotalSubmissions()
public String getJobTrackerMachine()
public int getTrackerPort()
public long getStartTime()
public Vector runningJobs()
public Vector failedJobs()
public Vector completedJobs()
public Collection taskTrackers()
public TaskTrackerStatus getTaskTracker(String trackerID)
public void initialize(String taskTrackerName)
public IntWritable emitHeartbeat(TaskTrackerStatus trackerStatus, BooleanWritable initialContact)
emitHeartbeat
in interface InterTrackerProtocol
public Task pollForNewTask(String trackerName)
pollForNewTask
in interface InterTrackerProtocol
public String pollForClosedTask(String trackerName)
pollForClosedTask
in interface InterTrackerProtocol
public MapOutputLocation[] locateMapOutputs(String taskId, String[] mapTasksNeeded)
locateMapOutputs
in interface InterTrackerProtocol
taskId
- the reduce task idmapTasksNeeded
- an array of UTF8 naming map task ids whose output is needed.
public JobTracker.JobInProgress getJob(String jobid)
public JobStatus submitJob(String jobFile) throws IOException
JobSubmissionProtocol
submitJob
in interface JobSubmissionProtocol
IOException
public void killJob(String jobid)
JobSubmissionProtocol
killJob
in interface JobSubmissionProtocol
public JobProfile getJobProfile(String jobid)
JobSubmissionProtocol
getJobProfile
in interface JobSubmissionProtocol
public JobStatus getJobStatus(String jobid)
JobSubmissionProtocol
getJobStatus
in interface JobSubmissionProtocol
public String getFilesystemName() throws IOException
InterTrackerProtocol
getFilesystemName
in interface InterTrackerProtocol
IOException
public static void main(String[] argv) throws IOException, InterruptedException
IOException
InterruptedException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |