Class RouterClientRMService
java.lang.Object
org.apache.hadoop.service.AbstractService
org.apache.hadoop.yarn.server.router.clientrm.RouterClientRMService
- All Implemented Interfaces:
Closeable,AutoCloseable,org.apache.hadoop.service.Service,org.apache.hadoop.yarn.api.ApplicationBaseProtocol,org.apache.hadoop.yarn.api.ApplicationClientProtocol
public class RouterClientRMService
extends org.apache.hadoop.service.AbstractService
implements org.apache.hadoop.yarn.api.ApplicationClientProtocol
RouterClientRMService is a service that runs on each router that can be used
to intercept and inspect
ApplicationClientProtocol messages from
client to the cluster resource manager. It listens
ApplicationClientProtocol messages from the client and creates a
request intercepting pipeline instance for each client. The pipeline is a
chain of ClientRequestInterceptor instances that can inspect and
modify the request/response as needed. The main difference with
AMRMProxyService is the protocol they implement.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classPrivate structure for encapsulating RequestInterceptor and user instances.Nested classes/interfaces inherited from interface org.apache.hadoop.service.Service
org.apache.hadoop.service.Service.STATE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hadoop.yarn.api.protocolrecords.CancelDelegationTokenResponsecancelDelegationToken(org.apache.hadoop.yarn.api.protocolrecords.CancelDelegationTokenRequest request) protected ClientRequestInterceptorThis method creates and returns reference of the first interceptor in the chain of request interceptor instances.protected RouterDelegationTokenSecretManagercreateRouterRMDelegationTokenSecretManager(org.apache.hadoop.conf.Configuration conf) Create RouterRMDelegationTokenSecretManager.org.apache.hadoop.yarn.api.protocolrecords.ReservationDeleteResponsedeleteReservation(org.apache.hadoop.yarn.api.protocolrecords.ReservationDeleteRequest request) org.apache.hadoop.yarn.api.protocolrecords.FailApplicationAttemptResponsefailApplicationAttempt(org.apache.hadoop.yarn.api.protocolrecords.FailApplicationAttemptRequest request) org.apache.hadoop.yarn.api.protocolrecords.KillApplicationResponseforceKillApplication(org.apache.hadoop.yarn.api.protocolrecords.KillApplicationRequest request) org.apache.hadoop.yarn.api.protocolrecords.GetApplicationAttemptReportResponsegetApplicationAttemptReport(org.apache.hadoop.yarn.api.protocolrecords.GetApplicationAttemptReportRequest request) org.apache.hadoop.yarn.api.protocolrecords.GetApplicationAttemptsResponsegetApplicationAttempts(org.apache.hadoop.yarn.api.protocolrecords.GetApplicationAttemptsRequest request) org.apache.hadoop.yarn.api.protocolrecords.GetApplicationReportResponsegetApplicationReport(org.apache.hadoop.yarn.api.protocolrecords.GetApplicationReportRequest request) org.apache.hadoop.yarn.api.protocolrecords.GetApplicationsResponsegetApplications(org.apache.hadoop.yarn.api.protocolrecords.GetApplicationsRequest request) org.apache.hadoop.yarn.api.protocolrecords.GetAttributesToNodesResponsegetAttributesToNodes(org.apache.hadoop.yarn.api.protocolrecords.GetAttributesToNodesRequest request) org.apache.hadoop.yarn.api.protocolrecords.GetClusterMetricsResponsegetClusterMetrics(org.apache.hadoop.yarn.api.protocolrecords.GetClusterMetricsRequest request) org.apache.hadoop.yarn.api.protocolrecords.GetClusterNodeAttributesResponsegetClusterNodeAttributes(org.apache.hadoop.yarn.api.protocolrecords.GetClusterNodeAttributesRequest request) org.apache.hadoop.yarn.api.protocolrecords.GetClusterNodeLabelsResponsegetClusterNodeLabels(org.apache.hadoop.yarn.api.protocolrecords.GetClusterNodeLabelsRequest request) org.apache.hadoop.yarn.api.protocolrecords.GetClusterNodesResponsegetClusterNodes(org.apache.hadoop.yarn.api.protocolrecords.GetClusterNodesRequest request) org.apache.hadoop.yarn.api.protocolrecords.GetContainerReportResponsegetContainerReport(org.apache.hadoop.yarn.api.protocolrecords.GetContainerReportRequest request) org.apache.hadoop.yarn.api.protocolrecords.GetContainersResponsegetContainers(org.apache.hadoop.yarn.api.protocolrecords.GetContainersRequest request) org.apache.hadoop.yarn.api.protocolrecords.GetDelegationTokenResponsegetDelegationToken(org.apache.hadoop.yarn.api.protocolrecords.GetDelegationTokenRequest request) org.apache.hadoop.yarn.api.protocolrecords.GetLabelsToNodesResponsegetLabelsToNodes(org.apache.hadoop.yarn.api.protocolrecords.GetLabelsToNodesRequest request) org.apache.hadoop.yarn.api.protocolrecords.GetNewApplicationResponsegetNewApplication(org.apache.hadoop.yarn.api.protocolrecords.GetNewApplicationRequest request) org.apache.hadoop.yarn.api.protocolrecords.GetNewReservationResponsegetNewReservation(org.apache.hadoop.yarn.api.protocolrecords.GetNewReservationRequest request) org.apache.hadoop.yarn.api.protocolrecords.GetNodesToAttributesResponsegetNodesToAttributes(org.apache.hadoop.yarn.api.protocolrecords.GetNodesToAttributesRequest request) org.apache.hadoop.yarn.api.protocolrecords.GetNodesToLabelsResponsegetNodeToLabels(org.apache.hadoop.yarn.api.protocolrecords.GetNodesToLabelsRequest request) Gets the Request interceptor chains for all the users.org.apache.hadoop.yarn.api.protocolrecords.GetQueueInfoResponsegetQueueInfo(org.apache.hadoop.yarn.api.protocolrecords.GetQueueInfoRequest request) org.apache.hadoop.yarn.api.protocolrecords.GetQueueUserAclsInfoResponsegetQueueUserAcls(org.apache.hadoop.yarn.api.protocolrecords.GetQueueUserAclsInfoRequest request) org.apache.hadoop.yarn.api.protocolrecords.GetResourceProfileResponsegetResourceProfile(org.apache.hadoop.yarn.api.protocolrecords.GetResourceProfileRequest request) org.apache.hadoop.yarn.api.protocolrecords.GetAllResourceProfilesResponsegetResourceProfiles(org.apache.hadoop.yarn.api.protocolrecords.GetAllResourceProfilesRequest request) org.apache.hadoop.yarn.api.protocolrecords.GetAllResourceTypeInfoResponsegetResourceTypeInfo(org.apache.hadoop.yarn.api.protocolrecords.GetAllResourceTypeInfoRequest request) org.apache.hadoop.ipc.ServervoidinitUserPipelineMap(org.apache.hadoop.conf.Configuration conf) org.apache.hadoop.yarn.api.protocolrecords.ReservationListResponselistReservations(org.apache.hadoop.yarn.api.protocolrecords.ReservationListRequest request) org.apache.hadoop.yarn.api.protocolrecords.MoveApplicationAcrossQueuesResponsemoveApplicationAcrossQueues(org.apache.hadoop.yarn.api.protocolrecords.MoveApplicationAcrossQueuesRequest request) org.apache.hadoop.yarn.api.protocolrecords.RenewDelegationTokenResponserenewDelegationToken(org.apache.hadoop.yarn.api.protocolrecords.RenewDelegationTokenRequest request) protected voidprotected voidvoidsetRouterDTSecretManager(RouterDelegationTokenSecretManager routerDTSecretManager) org.apache.hadoop.yarn.api.protocolrecords.SignalContainerResponsesignalToContainer(org.apache.hadoop.yarn.api.protocolrecords.SignalContainerRequest request) org.apache.hadoop.yarn.api.protocolrecords.SubmitApplicationResponsesubmitApplication(org.apache.hadoop.yarn.api.protocolrecords.SubmitApplicationRequest request) org.apache.hadoop.yarn.api.protocolrecords.ReservationSubmissionResponsesubmitReservation(org.apache.hadoop.yarn.api.protocolrecords.ReservationSubmissionRequest request) org.apache.hadoop.yarn.api.protocolrecords.UpdateApplicationPriorityResponseupdateApplicationPriority(org.apache.hadoop.yarn.api.protocolrecords.UpdateApplicationPriorityRequest request) org.apache.hadoop.yarn.api.protocolrecords.UpdateApplicationTimeoutsResponseupdateApplicationTimeouts(org.apache.hadoop.yarn.api.protocolrecords.UpdateApplicationTimeoutsRequest request) org.apache.hadoop.yarn.api.protocolrecords.ReservationUpdateResponseupdateReservation(org.apache.hadoop.yarn.api.protocolrecords.ReservationUpdateRequest request) Methods inherited from class org.apache.hadoop.service.AbstractService
close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, serviceInit, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStop
-
Constructor Details
-
RouterClientRMService
public RouterClientRMService()
-
-
Method Details
-
serviceStart
- Overrides:
serviceStartin classorg.apache.hadoop.service.AbstractService- Throws:
Exception
-
serviceStop
- Overrides:
serviceStopin classorg.apache.hadoop.service.AbstractService- Throws:
Exception
-
getServer
@VisibleForTesting public org.apache.hadoop.ipc.Server getServer() -
getNewApplication
public org.apache.hadoop.yarn.api.protocolrecords.GetNewApplicationResponse getNewApplication(org.apache.hadoop.yarn.api.protocolrecords.GetNewApplicationRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException - Specified by:
getNewApplicationin interfaceorg.apache.hadoop.yarn.api.ApplicationClientProtocol- Throws:
org.apache.hadoop.yarn.exceptions.YarnExceptionIOException
-
submitApplication
public org.apache.hadoop.yarn.api.protocolrecords.SubmitApplicationResponse submitApplication(org.apache.hadoop.yarn.api.protocolrecords.SubmitApplicationRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException - Specified by:
submitApplicationin interfaceorg.apache.hadoop.yarn.api.ApplicationClientProtocol- Throws:
org.apache.hadoop.yarn.exceptions.YarnExceptionIOException
-
forceKillApplication
public org.apache.hadoop.yarn.api.protocolrecords.KillApplicationResponse forceKillApplication(org.apache.hadoop.yarn.api.protocolrecords.KillApplicationRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException - Specified by:
forceKillApplicationin interfaceorg.apache.hadoop.yarn.api.ApplicationClientProtocol- Throws:
org.apache.hadoop.yarn.exceptions.YarnExceptionIOException
-
getClusterMetrics
public org.apache.hadoop.yarn.api.protocolrecords.GetClusterMetricsResponse getClusterMetrics(org.apache.hadoop.yarn.api.protocolrecords.GetClusterMetricsRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException - Specified by:
getClusterMetricsin interfaceorg.apache.hadoop.yarn.api.ApplicationClientProtocol- Throws:
org.apache.hadoop.yarn.exceptions.YarnExceptionIOException
-
getClusterNodes
public org.apache.hadoop.yarn.api.protocolrecords.GetClusterNodesResponse getClusterNodes(org.apache.hadoop.yarn.api.protocolrecords.GetClusterNodesRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException - Specified by:
getClusterNodesin interfaceorg.apache.hadoop.yarn.api.ApplicationClientProtocol- Throws:
org.apache.hadoop.yarn.exceptions.YarnExceptionIOException
-
getQueueInfo
public org.apache.hadoop.yarn.api.protocolrecords.GetQueueInfoResponse getQueueInfo(org.apache.hadoop.yarn.api.protocolrecords.GetQueueInfoRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException - Specified by:
getQueueInfoin interfaceorg.apache.hadoop.yarn.api.ApplicationClientProtocol- Throws:
org.apache.hadoop.yarn.exceptions.YarnExceptionIOException
-
getQueueUserAcls
public org.apache.hadoop.yarn.api.protocolrecords.GetQueueUserAclsInfoResponse getQueueUserAcls(org.apache.hadoop.yarn.api.protocolrecords.GetQueueUserAclsInfoRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException - Specified by:
getQueueUserAclsin interfaceorg.apache.hadoop.yarn.api.ApplicationClientProtocol- Throws:
org.apache.hadoop.yarn.exceptions.YarnExceptionIOException
-
moveApplicationAcrossQueues
public org.apache.hadoop.yarn.api.protocolrecords.MoveApplicationAcrossQueuesResponse moveApplicationAcrossQueues(org.apache.hadoop.yarn.api.protocolrecords.MoveApplicationAcrossQueuesRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException - Specified by:
moveApplicationAcrossQueuesin interfaceorg.apache.hadoop.yarn.api.ApplicationClientProtocol- Throws:
org.apache.hadoop.yarn.exceptions.YarnExceptionIOException
-
getNewReservation
public org.apache.hadoop.yarn.api.protocolrecords.GetNewReservationResponse getNewReservation(org.apache.hadoop.yarn.api.protocolrecords.GetNewReservationRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException - Specified by:
getNewReservationin interfaceorg.apache.hadoop.yarn.api.ApplicationClientProtocol- Throws:
org.apache.hadoop.yarn.exceptions.YarnExceptionIOException
-
submitReservation
public org.apache.hadoop.yarn.api.protocolrecords.ReservationSubmissionResponse submitReservation(org.apache.hadoop.yarn.api.protocolrecords.ReservationSubmissionRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException - Specified by:
submitReservationin interfaceorg.apache.hadoop.yarn.api.ApplicationClientProtocol- Throws:
org.apache.hadoop.yarn.exceptions.YarnExceptionIOException
-
listReservations
public org.apache.hadoop.yarn.api.protocolrecords.ReservationListResponse listReservations(org.apache.hadoop.yarn.api.protocolrecords.ReservationListRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException - Specified by:
listReservationsin interfaceorg.apache.hadoop.yarn.api.ApplicationClientProtocol- Throws:
org.apache.hadoop.yarn.exceptions.YarnExceptionIOException
-
updateReservation
public org.apache.hadoop.yarn.api.protocolrecords.ReservationUpdateResponse updateReservation(org.apache.hadoop.yarn.api.protocolrecords.ReservationUpdateRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException - Specified by:
updateReservationin interfaceorg.apache.hadoop.yarn.api.ApplicationClientProtocol- Throws:
org.apache.hadoop.yarn.exceptions.YarnExceptionIOException
-
deleteReservation
public org.apache.hadoop.yarn.api.protocolrecords.ReservationDeleteResponse deleteReservation(org.apache.hadoop.yarn.api.protocolrecords.ReservationDeleteRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException - Specified by:
deleteReservationin interfaceorg.apache.hadoop.yarn.api.ApplicationClientProtocol- Throws:
org.apache.hadoop.yarn.exceptions.YarnExceptionIOException
-
getNodeToLabels
public org.apache.hadoop.yarn.api.protocolrecords.GetNodesToLabelsResponse getNodeToLabels(org.apache.hadoop.yarn.api.protocolrecords.GetNodesToLabelsRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException - Specified by:
getNodeToLabelsin interfaceorg.apache.hadoop.yarn.api.ApplicationClientProtocol- Throws:
org.apache.hadoop.yarn.exceptions.YarnExceptionIOException
-
getLabelsToNodes
public org.apache.hadoop.yarn.api.protocolrecords.GetLabelsToNodesResponse getLabelsToNodes(org.apache.hadoop.yarn.api.protocolrecords.GetLabelsToNodesRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException - Specified by:
getLabelsToNodesin interfaceorg.apache.hadoop.yarn.api.ApplicationClientProtocol- Throws:
org.apache.hadoop.yarn.exceptions.YarnExceptionIOException
-
getClusterNodeLabels
public org.apache.hadoop.yarn.api.protocolrecords.GetClusterNodeLabelsResponse getClusterNodeLabels(org.apache.hadoop.yarn.api.protocolrecords.GetClusterNodeLabelsRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException - Specified by:
getClusterNodeLabelsin interfaceorg.apache.hadoop.yarn.api.ApplicationClientProtocol- Throws:
org.apache.hadoop.yarn.exceptions.YarnExceptionIOException
-
getApplicationReport
public org.apache.hadoop.yarn.api.protocolrecords.GetApplicationReportResponse getApplicationReport(org.apache.hadoop.yarn.api.protocolrecords.GetApplicationReportRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException - Specified by:
getApplicationReportin interfaceorg.apache.hadoop.yarn.api.ApplicationBaseProtocol- Throws:
org.apache.hadoop.yarn.exceptions.YarnExceptionIOException
-
getApplications
public org.apache.hadoop.yarn.api.protocolrecords.GetApplicationsResponse getApplications(org.apache.hadoop.yarn.api.protocolrecords.GetApplicationsRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException - Specified by:
getApplicationsin interfaceorg.apache.hadoop.yarn.api.ApplicationBaseProtocol- Throws:
org.apache.hadoop.yarn.exceptions.YarnExceptionIOException
-
getApplicationAttemptReport
public org.apache.hadoop.yarn.api.protocolrecords.GetApplicationAttemptReportResponse getApplicationAttemptReport(org.apache.hadoop.yarn.api.protocolrecords.GetApplicationAttemptReportRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException - Specified by:
getApplicationAttemptReportin interfaceorg.apache.hadoop.yarn.api.ApplicationBaseProtocol- Throws:
org.apache.hadoop.yarn.exceptions.YarnExceptionIOException
-
getApplicationAttempts
public org.apache.hadoop.yarn.api.protocolrecords.GetApplicationAttemptsResponse getApplicationAttempts(org.apache.hadoop.yarn.api.protocolrecords.GetApplicationAttemptsRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException - Specified by:
getApplicationAttemptsin interfaceorg.apache.hadoop.yarn.api.ApplicationBaseProtocol- Throws:
org.apache.hadoop.yarn.exceptions.YarnExceptionIOException
-
getContainerReport
public org.apache.hadoop.yarn.api.protocolrecords.GetContainerReportResponse getContainerReport(org.apache.hadoop.yarn.api.protocolrecords.GetContainerReportRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException - Specified by:
getContainerReportin interfaceorg.apache.hadoop.yarn.api.ApplicationBaseProtocol- Throws:
org.apache.hadoop.yarn.exceptions.YarnExceptionIOException
-
getContainers
public org.apache.hadoop.yarn.api.protocolrecords.GetContainersResponse getContainers(org.apache.hadoop.yarn.api.protocolrecords.GetContainersRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException - Specified by:
getContainersin interfaceorg.apache.hadoop.yarn.api.ApplicationBaseProtocol- Throws:
org.apache.hadoop.yarn.exceptions.YarnExceptionIOException
-
getDelegationToken
public org.apache.hadoop.yarn.api.protocolrecords.GetDelegationTokenResponse getDelegationToken(org.apache.hadoop.yarn.api.protocolrecords.GetDelegationTokenRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException - Specified by:
getDelegationTokenin interfaceorg.apache.hadoop.yarn.api.ApplicationBaseProtocol- Throws:
org.apache.hadoop.yarn.exceptions.YarnExceptionIOException
-
renewDelegationToken
public org.apache.hadoop.yarn.api.protocolrecords.RenewDelegationTokenResponse renewDelegationToken(org.apache.hadoop.yarn.api.protocolrecords.RenewDelegationTokenRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException - Specified by:
renewDelegationTokenin interfaceorg.apache.hadoop.yarn.api.ApplicationBaseProtocol- Throws:
org.apache.hadoop.yarn.exceptions.YarnExceptionIOException
-
cancelDelegationToken
public org.apache.hadoop.yarn.api.protocolrecords.CancelDelegationTokenResponse cancelDelegationToken(org.apache.hadoop.yarn.api.protocolrecords.CancelDelegationTokenRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException - Specified by:
cancelDelegationTokenin interfaceorg.apache.hadoop.yarn.api.ApplicationBaseProtocol- Throws:
org.apache.hadoop.yarn.exceptions.YarnExceptionIOException
-
failApplicationAttempt
public org.apache.hadoop.yarn.api.protocolrecords.FailApplicationAttemptResponse failApplicationAttempt(org.apache.hadoop.yarn.api.protocolrecords.FailApplicationAttemptRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException - Specified by:
failApplicationAttemptin interfaceorg.apache.hadoop.yarn.api.ApplicationClientProtocol- Throws:
org.apache.hadoop.yarn.exceptions.YarnExceptionIOException
-
updateApplicationPriority
public org.apache.hadoop.yarn.api.protocolrecords.UpdateApplicationPriorityResponse updateApplicationPriority(org.apache.hadoop.yarn.api.protocolrecords.UpdateApplicationPriorityRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException - Specified by:
updateApplicationPriorityin interfaceorg.apache.hadoop.yarn.api.ApplicationClientProtocol- Throws:
org.apache.hadoop.yarn.exceptions.YarnExceptionIOException
-
signalToContainer
public org.apache.hadoop.yarn.api.protocolrecords.SignalContainerResponse signalToContainer(org.apache.hadoop.yarn.api.protocolrecords.SignalContainerRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException - Specified by:
signalToContainerin interfaceorg.apache.hadoop.yarn.api.ApplicationClientProtocol- Throws:
org.apache.hadoop.yarn.exceptions.YarnExceptionIOException
-
updateApplicationTimeouts
public org.apache.hadoop.yarn.api.protocolrecords.UpdateApplicationTimeoutsResponse updateApplicationTimeouts(org.apache.hadoop.yarn.api.protocolrecords.UpdateApplicationTimeoutsRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException - Specified by:
updateApplicationTimeoutsin interfaceorg.apache.hadoop.yarn.api.ApplicationClientProtocol- Throws:
org.apache.hadoop.yarn.exceptions.YarnExceptionIOException
-
getResourceProfiles
public org.apache.hadoop.yarn.api.protocolrecords.GetAllResourceProfilesResponse getResourceProfiles(org.apache.hadoop.yarn.api.protocolrecords.GetAllResourceProfilesRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException - Specified by:
getResourceProfilesin interfaceorg.apache.hadoop.yarn.api.ApplicationClientProtocol- Throws:
org.apache.hadoop.yarn.exceptions.YarnExceptionIOException
-
getResourceProfile
public org.apache.hadoop.yarn.api.protocolrecords.GetResourceProfileResponse getResourceProfile(org.apache.hadoop.yarn.api.protocolrecords.GetResourceProfileRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException - Specified by:
getResourceProfilein interfaceorg.apache.hadoop.yarn.api.ApplicationClientProtocol- Throws:
org.apache.hadoop.yarn.exceptions.YarnExceptionIOException
-
getResourceTypeInfo
public org.apache.hadoop.yarn.api.protocolrecords.GetAllResourceTypeInfoResponse getResourceTypeInfo(org.apache.hadoop.yarn.api.protocolrecords.GetAllResourceTypeInfoRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException - Specified by:
getResourceTypeInfoin interfaceorg.apache.hadoop.yarn.api.ApplicationClientProtocol- Throws:
org.apache.hadoop.yarn.exceptions.YarnExceptionIOException
-
getAttributesToNodes
public org.apache.hadoop.yarn.api.protocolrecords.GetAttributesToNodesResponse getAttributesToNodes(org.apache.hadoop.yarn.api.protocolrecords.GetAttributesToNodesRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException - Specified by:
getAttributesToNodesin interfaceorg.apache.hadoop.yarn.api.ApplicationClientProtocol- Throws:
org.apache.hadoop.yarn.exceptions.YarnExceptionIOException
-
getClusterNodeAttributes
public org.apache.hadoop.yarn.api.protocolrecords.GetClusterNodeAttributesResponse getClusterNodeAttributes(org.apache.hadoop.yarn.api.protocolrecords.GetClusterNodeAttributesRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException - Specified by:
getClusterNodeAttributesin interfaceorg.apache.hadoop.yarn.api.ApplicationClientProtocol- Throws:
org.apache.hadoop.yarn.exceptions.YarnExceptionIOException
-
getNodesToAttributes
public org.apache.hadoop.yarn.api.protocolrecords.GetNodesToAttributesResponse getNodesToAttributes(org.apache.hadoop.yarn.api.protocolrecords.GetNodesToAttributesRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException - Specified by:
getNodesToAttributesin interfaceorg.apache.hadoop.yarn.api.ApplicationClientProtocol- Throws:
org.apache.hadoop.yarn.exceptions.YarnExceptionIOException
-
getInterceptorChain
@VisibleForTesting public RouterClientRMService.RequestInterceptorChainWrapper getInterceptorChain() throws IOException- Throws:
IOException
-
getPipelines
@VisibleForTesting protected Map<String,RouterClientRMService.RequestInterceptorChainWrapper> getPipelines()Gets the Request interceptor chains for all the users.- Returns:
- the request interceptor chains.
-
createRequestInterceptorChain
This method creates and returns reference of the first interceptor in the chain of request interceptor instances.- Returns:
- the reference of the first interceptor in the chain
-
getUserPipelineMap
@VisibleForTesting public Map<String,RouterClientRMService.RequestInterceptorChainWrapper> getUserPipelineMap() -
createRouterRMDelegationTokenSecretManager
protected RouterDelegationTokenSecretManager createRouterRMDelegationTokenSecretManager(org.apache.hadoop.conf.Configuration conf) Create RouterRMDelegationTokenSecretManager. In the YARN federation, the Router will replace the RM to manage the RMDelegationToken (generate, update, cancel), so the relevant configuration parameters still obtain the configuration parameters of the RM.- Parameters:
conf- Configuration- Returns:
- RouterDelegationTokenSecretManager.
-
getRouterDTSecretManager
-
setRouterDTSecretManager
@VisibleForTesting public void setRouterDTSecretManager(RouterDelegationTokenSecretManager routerDTSecretManager) -
initUserPipelineMap
@VisibleForTesting public void initUserPipelineMap(org.apache.hadoop.conf.Configuration conf)
-