Starting from protocol Versionedprotocol 4--adminoperationsprotocol, Intertrackerprotocol, Jobsubmissionprotocol, Taskumbilicalprotocol

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.