| Package | Description | 
|---|---|
| org.apache.hadoop.yarn.ams | Public api for Application Master Service interceptors. | 
| org.apache.hadoop.yarn.api | |
| org.apache.hadoop.yarn.api.records | |
| org.apache.hadoop.yarn.conf | |
| org.apache.hadoop.yarn.exceptions | |
| org.apache.hadoop.yarn.server.api | 
| Modifier and Type | Method and Description | 
|---|---|
| void | ApplicationMasterServiceProcessor. allocate(ApplicationAttemptId appAttemptId,
        AllocateRequest request,
        AllocateResponse response)Allocate call. | 
| void | ApplicationMasterServiceProcessor. registerApplicationMaster(ApplicationAttemptId applicationAttemptId,
                         RegisterApplicationMasterRequest request,
                         RegisterApplicationMasterResponse response)Register AM attempt. | 
| Modifier and Type | Method and Description | 
|---|---|
| AllocateResponse | ApplicationMasterProtocol. allocate(AllocateRequest request)
 The main interface between an  ApplicationMasterand theResourceManager. | 
| CancelDelegationTokenResponse | ApplicationBaseProtocol. cancelDelegationToken(CancelDelegationTokenRequest request)Cancel an existing delegation  Token. | 
| CommitResponse | ContainerManagementProtocol. commitLastReInitialization(ContainerId containerId)Commit the Last ReInitialization if possible. | 
| ReservationDeleteResponse | ApplicationClientProtocol. deleteReservation(ReservationDeleteRequest request)
 The interface used by clients to remove an existing Reservation. | 
| FailApplicationAttemptResponse | ApplicationClientProtocol. failApplicationAttempt(FailApplicationAttemptRequest request)The interface used by clients to request the 
  ResourceManagerto fail an application attempt. | 
| FinishApplicationMasterResponse | ApplicationMasterProtocol. finishApplicationMaster(FinishApplicationMasterRequest request)The interface used by an  ApplicationMasterto notify theResourceManagerabout its completion (success or failed). | 
| KillApplicationResponse | ApplicationClientProtocol. forceKillApplication(KillApplicationRequest request)The interface used by clients to request the
  ResourceManagerto abort submitted application. | 
| GetApplicationAttemptReportResponse | ApplicationBaseProtocol. getApplicationAttemptReport(GetApplicationAttemptReportRequest request)The interface used by clients to get a report of an Application Attempt
 from the  ResourceManagerorApplicationHistoryServer | 
| GetApplicationAttemptsResponse | ApplicationBaseProtocol. getApplicationAttempts(GetApplicationAttemptsRequest request)
 The interface used by clients to get a report of all Application attempts
 in the cluster from the  ResourceManagerorApplicationHistoryServer | 
| GetApplicationReportResponse | ApplicationBaseProtocol. getApplicationReport(GetApplicationReportRequest request)The interface used by clients to get a report of an Application from the
  ResourceManagerorApplicationHistoryServer. | 
| GetApplicationsResponse | ApplicationBaseProtocol. getApplications(GetApplicationsRequest request)
 The interface used by clients to get a report of Applications matching the
 filters defined by  GetApplicationsRequestin the cluster from theResourceManagerorApplicationHistoryServer. | 
| GetClusterMetricsResponse | ApplicationClientProtocol. getClusterMetrics(GetClusterMetricsRequest request)The interface used by clients to get metrics about the cluster from
 the  ResourceManager. | 
| GetClusterNodeLabelsResponse | ApplicationClientProtocol. getClusterNodeLabels(GetClusterNodeLabelsRequest request)
 The interface used by client to get node labels in the cluster | 
| GetClusterNodesResponse | ApplicationClientProtocol. getClusterNodes(GetClusterNodesRequest request)The interface used by clients to get a report of all nodes
 in the cluster from the  ResourceManager. | 
| GetContainerReportResponse | ApplicationBaseProtocol. getContainerReport(GetContainerReportRequest request)
 The interface used by clients to get a report of an Container from the
  ResourceManagerorApplicationHistoryServer | 
| GetContainersResponse | ApplicationBaseProtocol. getContainers(GetContainersRequest request)
 The interface used by clients to get a report of Containers for an
 application attempt from the  ResourceManagerorApplicationHistoryServer | 
| GetContainerStatusesResponse | ContainerManagementProtocol. getContainerStatuses(GetContainerStatusesRequest request)
 The API used by the  ApplicationMasterto request for current
 statuses ofContainers from theNodeManager. | 
| GetDelegationTokenResponse | ApplicationBaseProtocol. getDelegationToken(GetDelegationTokenRequest request)
 The interface used by clients to get delegation token, enabling the
 containers to be able to talk to the service using those tokens. | 
| GetLabelsToNodesResponse | ApplicationClientProtocol. getLabelsToNodes(GetLabelsToNodesRequest request)
 The interface used by client to get labels to nodes mappings
 in existing cluster | 
| GetNewApplicationResponse | ApplicationClientProtocol. getNewApplication(GetNewApplicationRequest request)The interface used by clients to obtain a new  ApplicationIdfor 
 submitting new applications. | 
| GetNewReservationResponse | ApplicationClientProtocol. getNewReservation(GetNewReservationRequest request)The interface used by clients to obtain a new  ReservationIdfor
 submitting new reservations. | 
| GetNodesToLabelsResponse | ApplicationClientProtocol. getNodeToLabels(GetNodesToLabelsRequest request)
 The interface used by client to get node to labels mappings in existing cluster | 
| GetQueueInfoResponse | ApplicationClientProtocol. getQueueInfo(GetQueueInfoRequest request)The interface used by clients to get information about queues
 from the  ResourceManager. | 
| GetQueueUserAclsInfoResponse | ApplicationClientProtocol. getQueueUserAcls(GetQueueUserAclsInfoRequest request)The interface used by clients to get information about queue 
 acls for current user from the  ResourceManager. | 
| GetResourceProfileResponse | ApplicationClientProtocol. getResourceProfile(GetResourceProfileRequest request)
 The interface to get the details for a specific resource profile. | 
| GetAllResourceProfilesResponse | ApplicationClientProtocol. getResourceProfiles(GetAllResourceProfilesRequest request)
 The interface used by clients to get all the resource profiles that are
 available on the ResourceManager. | 
| GetAllResourceTypeInfoResponse | ApplicationClientProtocol. getResourceTypeInfo(GetAllResourceTypeInfoRequest request)
 The interface to get the details for a specific resource profile. | 
| IncreaseContainersResourceResponse | ContainerManagementProtocol. increaseContainersResource(IncreaseContainersResourceRequest request)Deprecated.  | 
| ReservationListResponse | ApplicationClientProtocol. listReservations(ReservationListRequest request)
 The interface used by clients to get the list of reservations in a plan. | 
| ResourceLocalizationResponse | ContainerManagementProtocol. localize(ResourceLocalizationRequest request)Localize resources required by the container. | 
| MoveApplicationAcrossQueuesResponse | ApplicationClientProtocol. moveApplicationAcrossQueues(MoveApplicationAcrossQueuesRequest request)Move an application to a new queue. | 
| RegisterApplicationMasterResponse | ApplicationMasterProtocol. registerApplicationMaster(RegisterApplicationMasterRequest request)
 The interface used by a new  ApplicationMasterto register with
 theResourceManager. | 
| ReInitializeContainerResponse | ContainerManagementProtocol. reInitializeContainer(ReInitializeContainerRequest request)ReInitialize the Container with a new Launch Context. | 
| ReleaseSharedCacheResourceResponse | ClientSCMProtocol. release(ReleaseSharedCacheResourceRequest request)
 The interface used by clients to release a resource with the
  SharedCacheManager.This method is called once an application
 is no longer using a claimed resource in the shared cache. | 
| RenewDelegationTokenResponse | ApplicationBaseProtocol. renewDelegationToken(RenewDelegationTokenRequest request)Renew an existing delegation  Token. | 
| RestartContainerResponse | ContainerManagementProtocol. restartContainer(ContainerId containerId)Restart the container. | 
| RollbackResponse | ContainerManagementProtocol. rollbackLastReInitialization(ContainerId containerId)Rollback the Last ReInitialization if possible. | 
| SignalContainerResponse | ContainerManagementProtocol. signalToContainer(SignalContainerRequest request) | 
| SignalContainerResponse | ApplicationClientProtocol. signalToContainer(SignalContainerRequest request)The interface used by clients to request the
  ResourceManagerto signal a container. | 
| StartContainersResponse | ContainerManagementProtocol. startContainers(StartContainersRequest request)
 The  ApplicationMasterprovides a list ofStartContainerRequests to aNodeManagerto
 startContainers allocated to it using this interface. | 
| StopContainersResponse | ContainerManagementProtocol. stopContainers(StopContainersRequest request)
 The  ApplicationMasterrequests aNodeManagerto
 stop a list ofContainers allocated to it using this
 interface. | 
| SubmitApplicationResponse | ApplicationClientProtocol. submitApplication(SubmitApplicationRequest request)The interface used by clients to submit a new application to the
  ResourceManager. | 
| ReservationSubmissionResponse | ApplicationClientProtocol. submitReservation(ReservationSubmissionRequest request)
 The interface used by clients to submit a new reservation to the
  ResourceManager. | 
| UpdateApplicationPriorityResponse | ApplicationClientProtocol. updateApplicationPriority(UpdateApplicationPriorityRequest request)
 The interface used by client to set priority of an application. | 
| UpdateApplicationTimeoutsResponse | ApplicationClientProtocol. updateApplicationTimeouts(UpdateApplicationTimeoutsRequest request)
 The interface used by client to set ApplicationTimeouts of an application. | 
| ContainerUpdateResponse | ContainerManagementProtocol. updateContainer(ContainerUpdateRequest request)
 The API used by the  ApplicationMasterto request for
 resource update of running containers on theNodeManager. | 
| ReservationUpdateResponse | ApplicationClientProtocol. updateReservation(ReservationUpdateRequest request)
 The interface used by clients to update an existing Reservation. | 
| UseSharedCacheResourceResponse | ClientSCMProtocol. use(UseSharedCacheResourceRequest request)
 The interface used by clients to claim a resource with the
  SharedCacheManager.The client uses a checksum to identify the
 resource and anApplicationIdto identify which application will be
 using the resource. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | Evaluable. evaluate(T target)Evaluate against a given target, this process changes the internal state
 of current class. | 
| Modifier and Type | Method and Description | 
|---|---|
| abstract InputStream | ConfigurationProvider. getConfigurationInputStream(org.apache.hadoop.conf.Configuration bootstrapConf,
                           String name)Opens an InputStream at the indicated file | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | ApplicationAttemptNotFoundExceptionThis exception is thrown on
  (GetApplicationAttemptReportRequest)API when the Application Attempt doesn't exist in Application History Server orApplicationMasterProtocol.allocate(AllocateRequest)if application
 doesn't exist in RM. | 
| class  | ApplicationIdNotProvidedExceptionException to be thrown when Client submit an application without
 providing  ApplicationIdinApplicationSubmissionContext. | 
| class  | ApplicationMasterNotRegisteredExceptionThis exception is thrown when an Application Master tries to unregister by calling
  ApplicationMasterProtocol.finishApplicationMaster(FinishApplicationMasterRequest)API without first registering by callingApplicationMasterProtocol.registerApplicationMaster(RegisterApplicationMasterRequest)or after an RM restart. | 
| class  | ApplicationNotFoundExceptionThis exception is thrown on
  (GetApplicationReportRequest)API
 when the Application doesn't exist in RM and AHS | 
| class  | ConfigurationExceptionThis exception is thrown on unrecoverable configuration errors. | 
| class  | ContainerNotFoundExceptionThis exception is thrown on
  (GetContainerReportRequest)API when the container doesn't exist in AHS | 
| class  | InvalidAllocationTagExceptionThis exception is thrown by
  AllocationTagNamespace.parse(String)when it fails to parse a namespace. | 
| class  | InvalidApplicationMasterRequestExceptionThis exception is thrown when an ApplicationMaster asks for resources by
 calling  ApplicationMasterProtocol.allocate(AllocateRequest)without first registering by callingApplicationMasterProtocol.registerApplicationMaster(RegisterApplicationMasterRequest)or if it tries to register more than once. | 
| class  | InvalidAuxServiceExceptionThis exception is thrown by a NodeManager that is rejecting start-container
 requests via
  ContainerManagementProtocol.startContainers(StartContainersRequest)for auxservices does not exist. | 
| class  | InvalidContainerExceptionThis exception is thrown by a NodeManager that is rejecting start-container
 requests via
  ContainerManagementProtocol.startContainers(StartContainersRequest)for containers allocated by a previous instance of the RM. | 
| class  | InvalidContainerReleaseExceptionThis exception is thrown when an Application Master tries to release
 containers not belonging to it using
  ApplicationMasterProtocol.allocate(AllocateRequest)API. | 
| class  | InvalidLabelResourceRequestExceptionThis exception is thrown when a resource requested via
  ResourceRequestin theApplicationMasterProtocol.allocate(AllocateRequest)when requested
 label is not having permission to access. | 
| class  | InvalidResourceBlacklistRequestExceptionThis exception is thrown when an application provides an invalid
  ResourceBlacklistRequestspecification for blacklisting of resources
 inApplicationMasterProtocol.allocate(AllocateRequest)API. | 
| class  | InvalidResourceRequestExceptionThis exception is thrown when a resource requested via
  ResourceRequestin theApplicationMasterProtocol.allocate(AllocateRequest)API is out of the
 range of the configured lower and upper limits on resources. | 
| class  | NMNotYetReadyExceptionThis exception is thrown on
  ContainerManagementProtocol.startContainers(StartContainersRequest)API
 when an NM starts from scratch but has not yet connected with RM. | 
| class  | ResourceProfilesNotEnabledExceptionThis exception is thrown when the client requests information about
 ResourceProfiles in the
  ApplicationClientProtocolbut resource
 profiles is not enabled on the RM. | 
| class  | YARNFeatureNotEnabledExceptionThis exception is thrown when a feature is being used which is not enabled
 yet. | 
Copyright © 2008–2018 Apache Software Foundation. All rights reserved.