public class FederationRMAdminInterceptor extends AbstractRMAdminRequestInterceptor
user
Constructor and Description |
---|
FederationRMAdminInterceptor() |
Modifier and Type | Method and Description |
---|---|
org.apache.hadoop.yarn.server.api.protocolrecords.AddToClusterNodeLabelsResponse |
addToClusterNodeLabels(org.apache.hadoop.yarn.server.api.protocolrecords.AddToClusterNodeLabelsRequest request) |
org.apache.hadoop.yarn.server.api.protocolrecords.BatchSaveFederationQueuePoliciesResponse |
batchSaveFederationQueuePolicies(org.apache.hadoop.yarn.server.api.protocolrecords.BatchSaveFederationQueuePoliciesRequest request)
Batch Save the Queue Policies for the Federation.
|
org.apache.hadoop.yarn.server.api.protocolrecords.CheckForDecommissioningNodesResponse |
checkForDecommissioningNodes(org.apache.hadoop.yarn.server.api.protocolrecords.CheckForDecommissioningNodesRequest request) |
org.apache.hadoop.yarn.server.api.protocolrecords.DeleteFederationApplicationResponse |
deleteFederationApplication(org.apache.hadoop.yarn.server.api.protocolrecords.DeleteFederationApplicationRequest request) |
org.apache.hadoop.yarn.server.api.protocolrecords.DeleteFederationQueuePoliciesResponse |
deleteFederationPoliciesByQueues(org.apache.hadoop.yarn.server.api.protocolrecords.DeleteFederationQueuePoliciesRequest request)
Delete Policies based on the provided queue list.
|
org.apache.hadoop.yarn.server.api.protocolrecords.DeregisterSubClusterResponse |
deregisterSubCluster(org.apache.hadoop.yarn.server.api.protocolrecords.DeregisterSubClusterRequest request)
In YARN Federation mode, We allow users to mark subClusters
With no heartbeat for a long time as SC_LOST state.
|
protected org.apache.hadoop.yarn.server.api.ResourceManagerAdministrationProtocol |
getAdminRMProxyForSubCluster(org.apache.hadoop.yarn.server.federation.store.records.SubClusterId subClusterId) |
ThreadPoolExecutor |
getExecutorService() |
org.apache.hadoop.yarn.server.federation.utils.FederationStateStoreFacade |
getFederationFacade() |
org.apache.hadoop.yarn.server.api.protocolrecords.GetSubClustersResponse |
getFederationSubClusters(org.apache.hadoop.yarn.server.api.protocolrecords.GetSubClustersRequest request)
Get federation subcluster list.
|
String[] |
getGroupsForUser(String user) |
protected Map<org.apache.hadoop.yarn.server.federation.store.records.SubClusterIdInfo,Float> |
getSubClusterWeightMap(String policyWeight)
Get the Map of SubClusterWeight.
|
void |
init(String userName)
Initializes the
RMAdminRequestInterceptor . |
org.apache.hadoop.yarn.server.api.protocolrecords.QueryFederationQueuePoliciesResponse |
listFederationQueuePolicies(org.apache.hadoop.yarn.server.api.protocolrecords.QueryFederationQueuePoliciesRequest request)
List the Queue Policies for the Federation.
|
org.apache.hadoop.yarn.server.api.protocolrecords.NodesToAttributesMappingResponse |
mapAttributesToNodes(org.apache.hadoop.yarn.server.api.protocolrecords.NodesToAttributesMappingRequest request) |
protected String |
parsePolicyWeights(Map<org.apache.hadoop.yarn.server.federation.store.records.SubClusterIdInfo,Float> policyWeights)
Parses the policy weights from the provided policyWeights map.
|
org.apache.hadoop.yarn.server.api.protocolrecords.RefreshAdminAclsResponse |
refreshAdminAcls(org.apache.hadoop.yarn.server.api.protocolrecords.RefreshAdminAclsRequest request) |
org.apache.hadoop.yarn.server.api.protocolrecords.RefreshClusterMaxPriorityResponse |
refreshClusterMaxPriority(org.apache.hadoop.yarn.server.api.protocolrecords.RefreshClusterMaxPriorityRequest request) |
org.apache.hadoop.yarn.server.api.protocolrecords.RefreshNodesResponse |
refreshNodes(org.apache.hadoop.yarn.server.api.protocolrecords.RefreshNodesRequest request)
Refresh node requests.
|
org.apache.hadoop.yarn.server.api.protocolrecords.RefreshNodesResourcesResponse |
refreshNodesResources(org.apache.hadoop.yarn.server.api.protocolrecords.RefreshNodesResourcesRequest request) |
org.apache.hadoop.yarn.server.api.protocolrecords.RefreshQueuesResponse |
refreshQueues(org.apache.hadoop.yarn.server.api.protocolrecords.RefreshQueuesRequest request)
Refresh queue requests.
|
org.apache.hadoop.yarn.server.api.protocolrecords.RefreshServiceAclsResponse |
refreshServiceAcls(org.apache.hadoop.yarn.server.api.protocolrecords.RefreshServiceAclsRequest request) |
org.apache.hadoop.yarn.server.api.protocolrecords.RefreshSuperUserGroupsConfigurationResponse |
refreshSuperUserGroupsConfiguration(org.apache.hadoop.yarn.server.api.protocolrecords.RefreshSuperUserGroupsConfigurationRequest request)
Refresh SuperUserGroupsConfiguration requests.
|
org.apache.hadoop.yarn.server.api.protocolrecords.RefreshUserToGroupsMappingsResponse |
refreshUserToGroupsMappings(org.apache.hadoop.yarn.server.api.protocolrecords.RefreshUserToGroupsMappingsRequest request)
Refresh UserToGroupsMappings requests.
|
org.apache.hadoop.yarn.server.api.protocolrecords.RemoveFromClusterNodeLabelsResponse |
removeFromClusterNodeLabels(org.apache.hadoop.yarn.server.api.protocolrecords.RemoveFromClusterNodeLabelsRequest request) |
org.apache.hadoop.yarn.server.api.protocolrecords.ReplaceLabelsOnNodeResponse |
replaceLabelsOnNode(org.apache.hadoop.yarn.server.api.protocolrecords.ReplaceLabelsOnNodeRequest request) |
org.apache.hadoop.yarn.server.api.protocolrecords.SaveFederationQueuePolicyResponse |
saveFederationQueuePolicy(org.apache.hadoop.yarn.server.api.protocolrecords.SaveFederationQueuePolicyRequest request)
Save the Queue Policy for the Federation.
|
void |
setNextInterceptor(RMAdminRequestInterceptor next)
Sets the
RMAdminRequestInterceptor in the chain. |
org.apache.hadoop.yarn.server.api.protocolrecords.UpdateNodeResourceResponse |
updateNodeResource(org.apache.hadoop.yarn.server.api.protocolrecords.UpdateNodeResourceRequest request) |
getConf, getNextInterceptor, setConf, shutdown
public void init(String userName)
AbstractRMAdminRequestInterceptor
RMAdminRequestInterceptor
.init
in interface RMAdminRequestInterceptor
init
in class AbstractRMAdminRequestInterceptor
userName
- the name of the client@VisibleForTesting protected org.apache.hadoop.yarn.server.api.ResourceManagerAdministrationProtocol getAdminRMProxyForSubCluster(org.apache.hadoop.yarn.server.federation.store.records.SubClusterId subClusterId) throws Exception
Exception
public void setNextInterceptor(RMAdminRequestInterceptor next)
AbstractRMAdminRequestInterceptor
RMAdminRequestInterceptor
in the chain.setNextInterceptor
in interface RMAdminRequestInterceptor
setNextInterceptor
in class AbstractRMAdminRequestInterceptor
next
- the RMAdminRequestInterceptor to set in the pipelinepublic org.apache.hadoop.yarn.server.api.protocolrecords.RefreshQueuesResponse refreshQueues(org.apache.hadoop.yarn.server.api.protocolrecords.RefreshQueuesRequest request) throws org.apache.hadoop.ipc.StandbyException, org.apache.hadoop.yarn.exceptions.YarnException, IOException
request
- RefreshQueuesRequest, If subClusterId is not empty,
it means that we want to refresh the queue of the specified subClusterId.
If subClusterId is empty, it means we want to refresh all queues.org.apache.hadoop.ipc.StandbyException
- exception thrown by non-active server.org.apache.hadoop.yarn.exceptions.YarnException
- indicates exceptions from yarn servers.IOException
- io error occurs.public org.apache.hadoop.yarn.server.api.protocolrecords.RefreshNodesResponse refreshNodes(org.apache.hadoop.yarn.server.api.protocolrecords.RefreshNodesRequest request) throws org.apache.hadoop.ipc.StandbyException, org.apache.hadoop.yarn.exceptions.YarnException, IOException
request
- RefreshNodesRequest, If subClusterId is not empty,
it means that we want to refresh the node of the specified subClusterId.
If subClusterId is empty, it means we want to refresh all nodes.org.apache.hadoop.ipc.StandbyException
- exception thrown by non-active server.org.apache.hadoop.yarn.exceptions.YarnException
- indicates exceptions from yarn servers.IOException
- io error occurs.public org.apache.hadoop.yarn.server.api.protocolrecords.RefreshSuperUserGroupsConfigurationResponse refreshSuperUserGroupsConfiguration(org.apache.hadoop.yarn.server.api.protocolrecords.RefreshSuperUserGroupsConfigurationRequest request) throws org.apache.hadoop.ipc.StandbyException, org.apache.hadoop.yarn.exceptions.YarnException, IOException
request
- RefreshSuperUserGroupsConfigurationRequest,
If subClusterId is not empty, it means that we want to
refresh the superuser groups configuration of the specified subClusterId.
If subClusterId is empty, it means we want to
refresh all subCluster superuser groups configuration.org.apache.hadoop.ipc.StandbyException
- exception thrown by non-active server.org.apache.hadoop.yarn.exceptions.YarnException
- indicates exceptions from yarn servers.IOException
- io error occurs.public org.apache.hadoop.yarn.server.api.protocolrecords.RefreshUserToGroupsMappingsResponse refreshUserToGroupsMappings(org.apache.hadoop.yarn.server.api.protocolrecords.RefreshUserToGroupsMappingsRequest request) throws org.apache.hadoop.ipc.StandbyException, org.apache.hadoop.yarn.exceptions.YarnException, IOException
request
- RefreshUserToGroupsMappingsRequest,
If subClusterId is not empty, it means that we want to
refresh the user groups mapping of the specified subClusterId.
If subClusterId is empty, it means we want to
refresh all subCluster user groups mapping.org.apache.hadoop.ipc.StandbyException
- exception thrown by non-active server.org.apache.hadoop.yarn.exceptions.YarnException
- indicates exceptions from yarn servers.IOException
- io error occurs.public org.apache.hadoop.yarn.server.api.protocolrecords.RefreshAdminAclsResponse refreshAdminAcls(org.apache.hadoop.yarn.server.api.protocolrecords.RefreshAdminAclsRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException
org.apache.hadoop.yarn.exceptions.YarnException
IOException
public org.apache.hadoop.yarn.server.api.protocolrecords.RefreshServiceAclsResponse refreshServiceAcls(org.apache.hadoop.yarn.server.api.protocolrecords.RefreshServiceAclsRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException
org.apache.hadoop.yarn.exceptions.YarnException
IOException
public org.apache.hadoop.yarn.server.api.protocolrecords.UpdateNodeResourceResponse updateNodeResource(org.apache.hadoop.yarn.server.api.protocolrecords.UpdateNodeResourceRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException
org.apache.hadoop.yarn.exceptions.YarnException
IOException
public org.apache.hadoop.yarn.server.api.protocolrecords.RefreshNodesResourcesResponse refreshNodesResources(org.apache.hadoop.yarn.server.api.protocolrecords.RefreshNodesResourcesRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException
org.apache.hadoop.yarn.exceptions.YarnException
IOException
public org.apache.hadoop.yarn.server.api.protocolrecords.AddToClusterNodeLabelsResponse addToClusterNodeLabels(org.apache.hadoop.yarn.server.api.protocolrecords.AddToClusterNodeLabelsRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException
org.apache.hadoop.yarn.exceptions.YarnException
IOException
public org.apache.hadoop.yarn.server.api.protocolrecords.RemoveFromClusterNodeLabelsResponse removeFromClusterNodeLabels(org.apache.hadoop.yarn.server.api.protocolrecords.RemoveFromClusterNodeLabelsRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException
org.apache.hadoop.yarn.exceptions.YarnException
IOException
public org.apache.hadoop.yarn.server.api.protocolrecords.ReplaceLabelsOnNodeResponse replaceLabelsOnNode(org.apache.hadoop.yarn.server.api.protocolrecords.ReplaceLabelsOnNodeRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException
org.apache.hadoop.yarn.exceptions.YarnException
IOException
public org.apache.hadoop.yarn.server.api.protocolrecords.CheckForDecommissioningNodesResponse checkForDecommissioningNodes(org.apache.hadoop.yarn.server.api.protocolrecords.CheckForDecommissioningNodesRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException
org.apache.hadoop.yarn.exceptions.YarnException
IOException
public org.apache.hadoop.yarn.server.api.protocolrecords.RefreshClusterMaxPriorityResponse refreshClusterMaxPriority(org.apache.hadoop.yarn.server.api.protocolrecords.RefreshClusterMaxPriorityRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException
org.apache.hadoop.yarn.exceptions.YarnException
IOException
public org.apache.hadoop.yarn.server.api.protocolrecords.NodesToAttributesMappingResponse mapAttributesToNodes(org.apache.hadoop.yarn.server.api.protocolrecords.NodesToAttributesMappingRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException
org.apache.hadoop.yarn.exceptions.YarnException
IOException
public String[] getGroupsForUser(String user) throws IOException
IOException
@VisibleForTesting public org.apache.hadoop.yarn.server.federation.utils.FederationStateStoreFacade getFederationFacade()
@VisibleForTesting public ThreadPoolExecutor getExecutorService()
public org.apache.hadoop.yarn.server.api.protocolrecords.DeregisterSubClusterResponse deregisterSubCluster(org.apache.hadoop.yarn.server.api.protocolrecords.DeregisterSubClusterRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException
request
- deregisterSubCluster request.
The request contains the id of to deregister sub-cluster.org.apache.hadoop.yarn.exceptions.YarnException
- exceptions from yarn servers.IOException
- if an IO error occurred.public org.apache.hadoop.yarn.server.api.protocolrecords.SaveFederationQueuePolicyResponse saveFederationQueuePolicy(org.apache.hadoop.yarn.server.api.protocolrecords.SaveFederationQueuePolicyRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException
request
- saveFederationQueuePolicy Request.org.apache.hadoop.yarn.exceptions.YarnException
- exceptions from yarn servers.IOException
- if an IO error occurred.public org.apache.hadoop.yarn.server.api.protocolrecords.BatchSaveFederationQueuePoliciesResponse batchSaveFederationQueuePolicies(org.apache.hadoop.yarn.server.api.protocolrecords.BatchSaveFederationQueuePoliciesRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException
request
- BatchSaveFederationQueuePolicies Requestorg.apache.hadoop.yarn.exceptions.YarnException
- exceptions from yarn servers.IOException
- if an IO error occurred.public org.apache.hadoop.yarn.server.api.protocolrecords.QueryFederationQueuePoliciesResponse listFederationQueuePolicies(org.apache.hadoop.yarn.server.api.protocolrecords.QueryFederationQueuePoliciesRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException
request
- QueryFederationQueuePolicies Request.org.apache.hadoop.yarn.exceptions.YarnException
- indicates exceptions from yarn servers.IOException
- io error occurs.public org.apache.hadoop.yarn.server.api.protocolrecords.DeleteFederationApplicationResponse deleteFederationApplication(org.apache.hadoop.yarn.server.api.protocolrecords.DeleteFederationApplicationRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException
org.apache.hadoop.yarn.exceptions.YarnException
IOException
public org.apache.hadoop.yarn.server.api.protocolrecords.GetSubClustersResponse getFederationSubClusters(org.apache.hadoop.yarn.server.api.protocolrecords.GetSubClustersRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException
request
- GetSubClustersRequest Request.org.apache.hadoop.yarn.exceptions.YarnException
- exceptions from yarn servers.IOException
- io error occurs.public org.apache.hadoop.yarn.server.api.protocolrecords.DeleteFederationQueuePoliciesResponse deleteFederationPoliciesByQueues(org.apache.hadoop.yarn.server.api.protocolrecords.DeleteFederationQueuePoliciesRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException
request
- DeleteFederationQueuePoliciesRequest Request.org.apache.hadoop.yarn.exceptions.YarnException
- indicates exceptions from yarn servers.IOException
- io error occurs.protected String parsePolicyWeights(Map<org.apache.hadoop.yarn.server.federation.store.records.SubClusterIdInfo,Float> policyWeights)
policyWeights
- A map containing SubClusterIdInfo as keys and corresponding weight values.protected Map<org.apache.hadoop.yarn.server.federation.store.records.SubClusterIdInfo,Float> getSubClusterWeightMap(String policyWeight) throws org.apache.hadoop.yarn.exceptions.YarnException
policyWeight
- policyWeight.org.apache.hadoop.yarn.exceptions.YarnException
- exceptions from yarn servers.Copyright © 2008–2024 Apache Software Foundation. All rights reserved.