@InterfaceAudience.Public @InterfaceStability.Stable public interface AMRMProtocol
The protocol between a live instance of ApplicationMaster
and the ResourceManager.
This is used by the ApplicationMaster to register/unregister
and to request and obtain resources in the cluster from the
ResourceManager.
| Modifier and Type | Method and Description |
|---|---|
AllocateResponse |
allocate(AllocateRequest request)
The main interface between an
ApplicationMaster
and the ResourceManager. |
FinishApplicationMasterResponse |
finishApplicationMaster(org.apache.hadoop.yarn.api.protocolrecords.FinishApplicationMasterRequest request)
The interface used by an
ApplicationMaster to notify the
ResourceManager about its completion (success or failed). |
RegisterApplicationMasterResponse |
registerApplicationMaster(RegisterApplicationMasterRequest request)
The interface used by a new
ApplicationMaster to register
with the ResourceManager. |
RegisterApplicationMasterResponse registerApplicationMaster(RegisterApplicationMasterRequest request) throws org.apache.hadoop.yarn.exceptions.YarnRemoteException
The interface used by a new ApplicationMaster to register
with the ResourceManager.
The ApplicationMaster needs to provide details such
as RPC Port, HTTP tracking url etc. as specified in
RegisterApplicationMasterRequest.
The ResourceManager responds with critical details such
as minimum and maximum resource capabilities in the cluster as specified in
RegisterApplicationMasterResponse.
request - registration requestorg.apache.hadoop.yarn.exceptions.YarnRemoteExceptionFinishApplicationMasterResponse finishApplicationMaster(org.apache.hadoop.yarn.api.protocolrecords.FinishApplicationMasterRequest request) throws org.apache.hadoop.yarn.exceptions.YarnRemoteException
The interface used by an ApplicationMaster to notify the
ResourceManager about its completion (success or failed).
The ApplicationMaster has to provide details such as
final state, diagnostics (in case of failures) etc. as specified in
FinishApplicationMasterRequest.
The ResourceManager responds with
FinishApplicationMasterResponse.
request - completion requestorg.apache.hadoop.yarn.exceptions.YarnRemoteExceptionAllocateResponse allocate(AllocateRequest request) throws org.apache.hadoop.yarn.exceptions.YarnRemoteException
The main interface between an ApplicationMaster
and the ResourceManager.
The ApplicationMaster uses this interface to provide a list
of ResourceRequest and returns unused Container allocated
to it via AllocateRequest.
This also doubles up as a heartbeat to let the
ResourceManager know that the ApplicationMaster
is alive. Thus, applications should periodically make this call to be kept
alive. The frequency depends on ??
The ResourceManager responds with list of allocated
Container, status of completed containers and headroom information
for the application.
The ApplicationMaster can use the available headroom
(resources) to decide how to utilized allocated resources and make
informed decisions about future resource requests.
request - allocation requestorg.apache.hadoop.yarn.exceptions.YarnRemoteExceptionCopyright © 2014 Apache Software Foundation. All Rights Reserved.