|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.nutch.mapReduce.JobClient
JobClient interacts with the JobTracker network interface. This object implements the job-control interface, and should be the primary method by which user programs interact with the networked job system.
Field Summary |
Fields inherited from interface org.apache.nutch.mapReduce.MRConstants |
FILE_NOT_FOUND, HEARTBEAT_INTERVAL, SUCCESS, TASKTRACKER_EXPIRY_INTERVAL |
Constructor Summary | |
JobClient()
Build a job client, connect to the default job tracker |
|
JobClient(InetSocketAddress jobTrackAddr)
Build a job client, connect to the indicated job tracker. |
Method Summary | |
void |
close()
|
NutchFileSystem |
getFs()
Get a filesystem handle. |
RunningJob |
getJob(String jobid)
Get an RunningJob object to track an ongoing job. |
static void |
main(String[] argv)
|
static void |
runJob(JobConf job)
Utility that submits a job, then polls for progress until the job is complete. |
RunningJob |
submitJob(JobConf job)
Submit a job to the MR system |
RunningJob |
submitJob(String jobFile)
Submit a job to the MR system |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JobClient() throws IOException
public JobClient(InetSocketAddress jobTrackAddr) throws IOException
Method Detail |
public void close() throws IOException
IOException
public NutchFileSystem getFs() throws IOException
IOException
public RunningJob submitJob(String jobFile) throws IOException
IOException
public RunningJob submitJob(JobConf job) throws IOException
IOException
public RunningJob getJob(String jobid) throws IOException
IOException
public static void runJob(JobConf job) throws IOException
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 |