1, Package org.apache.hadoop.mapred These four agreements are under this packet.
2, from the simplest adminoperationsprotocol see,
void Refreshqueues () throws IOException;
void Refreshnodes () throws IOException;
Boolean Setsafemode (Jobtracker.safemodeaction safemodeaction) throws IOException;
3, relative to the HDFS inside that several protocols, these protocols are often modified, not very stable
Intertrackerprotocol
Heartbeatresponse Heartbeat (Tasktrackerstatus status,
Boolean restarted,
Boolean initialcontact,
Boolean acceptnewtasks,
Short Responseid)
Throws IOException;
Public String Getfilesystemname () throws IOException;
public void Reporttasktrackererror (String tasktracker,
String Errorclass,
String errormessage) throws IOException;
Taskcompletionevent[] Gettaskcompletionevents (JobID JobID, int fromeventid
, int maxevents) throws IOException;
Public String Getsystemdir ();
Public String getbuildversion () throws IOException;
Public String getviversion () throws IOException;
Jobsubmissionprotocol
Public JobID Getnewjobid () throws IOException;
Public Jobstatus SubmitJob (JobID jobName, String jobsubmitdir, Credentials ts)
Throws IOException;
Public Clusterstatus Getclusterstatus (Boolean detailed) throws IOException;
Public accesscontrollist getqueueadmins (String queuename) throws IOException;
public void Killjob (JobID JobID) throws IOException;
public void Setjobpriority (JobID JobID, String priority)
Throws IOException;
public boolean killtask (Taskattemptid taskId, Boolean shouldfail) throws IOException;
Public Jobprofile getjobprofile (JobID JobID) throws IOException;
Public Jobstatus getjobstatus (JobID JobID) throws IOException;
Public Counters getjobcounters (JobID JobID) throws IOException;
Public taskreport[] Getmaptaskreports (JobID JobID) throws IOException;
Public taskreport[] Getreducetaskreports (JobID JobID) throws IOException;
Public taskreport[] Getcleanuptaskreports (JobID JobID) throws IOException;
Public taskreport[] Getsetuptaskreports (JobID JobID) throws IOException;
Public String Getfilesystemname () throws IOException;
Public jobstatus[] Jobstocomplete () throws IOException;
Public jobstatus[] GetAllJobs () throws IOException;
Public taskcompletionevent[] Gettaskcompletionevents (JobID JobID
, int fromeventid, int maxevents) throws IOException;
Public string[] Gettaskdiagnostics (Taskattemptid taskId)
Throws IOException;
Public String Getsystemdir ();
Public String Getstagingareadir () throws IOException;
Public jobqueueinfo[] Getqueues () throws IOException;
Public Jobqueueinfo getqueueinfo (String queue) throws IOException;
Public jobstatus[] Getjobsfromqueue (String queue) throws IOException;
Public queueaclsinfo[] Getqueueaclsforcurrentuser () throws IOException;
Public
token<delegationtokenidentifier> Getdelegationtoken (Text renewer
) throws IOException,
Interruptedexception;
Public long Renewdelegationtoken (token<delegationtokenidentifier> Token
) throws IOException,
Interruptedexception;
public void Canceldelegationtoken (token<delegationtokenidentifier> Token
) throws Ioexception,interruptedexception;
Taskumbilicalprotocol
Jvmtask Gettask (Jvmcontext context) throws IOException;
Boolean statusupdate (Taskattemptid taskId, TaskStatus TaskStatus,
Jvmcontext Jvmcontext) throws IOException, interruptedexception;
void Reportdiagnosticinfo (Taskattemptid taskid, String Trace,
Jvmcontext jvmcontext) throws IOException;
void Reportnextrecordrange (Taskattemptid taskid, Sortedranges.range Range,
Jvmcontext jvmcontext) throws IOException;
Boolean ping (Taskattemptid taskid, Jvmcontext jvmcontext) throws IOException;
void Done (Taskattemptid taskid, Jvmcontext jvmcontext) throws IOException;
void Commitpending (Taskattemptid taskId, TaskStatus TaskStatus,
Jvmcontext Jvmcontext) throws IOException, interruptedexception;
Boolean Cancommit (Taskattemptid taskid, Jvmcontext jvmcontext) throws IOException;
void Shuffleerror (Taskattemptid taskId, String message, Jvmcontext jvmcontext)
Throws IOException;
void Fserror (Taskattemptid taskId, String message, Jvmcontext jvmcontext)
Throws IOException;
void FatalError (Taskattemptid taskId, String message, Jvmcontext jvmcontext)
Throws IOException;
Maptaskcompletioneventsupdate getmapcompletionevents (JobID JobID,
int FromIndex,
int Maxlocs,
Taskattemptid ID,
Jvmcontext Jvmcontext)
Throws IOException;
void Updateprivatedistributedcachesizes (Org.apache.hadoop.mapreduce.JobID JobID,
Long[] sizes) throws IOException;
Starting from protocol Versionedprotocol 4--adminoperationsprotocol, Intertrackerprotocol, Jobsubmissionprotocol, Taskumbilicalprotocol