org.apache.hadoop.yarn.server.resourcemanager
Class AdminService
java.lang.Object
org.apache.hadoop.service.AbstractService
org.apache.hadoop.service.CompositeService
org.apache.hadoop.yarn.server.resourcemanager.AdminService
- All Implemented Interfaces:
- Closeable, org.apache.hadoop.ha.HAServiceProtocol, org.apache.hadoop.service.Service, org.apache.hadoop.tools.GetUserMappingsProtocol, org.apache.hadoop.yarn.server.api.ResourceManagerAdministrationProtocol
public class AdminService
- extends org.apache.hadoop.service.CompositeService
- implements org.apache.hadoop.ha.HAServiceProtocol, org.apache.hadoop.yarn.server.api.ResourceManagerAdministrationProtocol
| Nested classes/interfaces inherited from class org.apache.hadoop.service.CompositeService |
org.apache.hadoop.service.CompositeService.CompositeServiceShutdownHook |
| Nested classes/interfaces inherited from interface org.apache.hadoop.ha.HAServiceProtocol |
org.apache.hadoop.ha.HAServiceProtocol.HAServiceState, org.apache.hadoop.ha.HAServiceProtocol.RequestSource, org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo |
| Nested classes/interfaces inherited from interface org.apache.hadoop.service.Service |
org.apache.hadoop.service.Service.STATE |
| Fields inherited from class org.apache.hadoop.service.CompositeService |
STOP_ONLY_STARTED_SERVICES |
| Fields inherited from interface org.apache.hadoop.ha.HAServiceProtocol |
versionID |
|
Method Summary |
org.apache.hadoop.yarn.server.api.protocolrecords.AddToClusterNodeLabelsResponse |
addToClusterNodeLabels(org.apache.hadoop.yarn.server.api.protocolrecords.AddToClusterNodeLabelsRequest request)
|
protected EmbeddedElectorService |
createEmbeddedElectorService()
|
org.apache.hadoop.security.authorize.AccessControlList |
getAccessControlList()
|
String[] |
getGroupsForUser(String user)
|
org.apache.hadoop.ipc.RPC.Server |
getServer()
|
org.apache.hadoop.ha.HAServiceStatus |
getServiceStatus()
|
void |
monitorHealth()
|
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.RefreshNodesResponse |
refreshNodes(org.apache.hadoop.yarn.server.api.protocolrecords.RefreshNodesRequest request)
|
org.apache.hadoop.yarn.server.api.protocolrecords.RefreshQueuesResponse |
refreshQueues(org.apache.hadoop.yarn.server.api.protocolrecords.RefreshQueuesRequest request)
|
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)
|
org.apache.hadoop.yarn.server.api.protocolrecords.RefreshUserToGroupsMappingsResponse |
refreshUserToGroupsMappings(org.apache.hadoop.yarn.server.api.protocolrecords.RefreshUserToGroupsMappingsRequest request)
|
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)
|
void |
serviceInit(org.apache.hadoop.conf.Configuration conf)
|
protected void |
serviceStart()
|
protected void |
serviceStop()
|
protected void |
startServer()
|
protected void |
stopServer()
|
void |
transitionToActive(org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo reqInfo)
|
void |
transitionToStandby(org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo reqInfo)
|
org.apache.hadoop.yarn.server.api.protocolrecords.UpdateNodeResourceResponse |
updateNodeResource(org.apache.hadoop.yarn.server.api.protocolrecords.UpdateNodeResourceRequest request)
|
| Methods inherited from class org.apache.hadoop.service.CompositeService |
addIfService, addService, getServices, removeService |
| 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, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStop |
AdminService
public AdminService(ResourceManager rm,
RMContext rmContext)
serviceInit
public void serviceInit(org.apache.hadoop.conf.Configuration conf)
throws Exception
- Overrides:
serviceInit in class org.apache.hadoop.service.CompositeService
- Throws:
Exception
serviceStart
protected void serviceStart()
throws Exception
- Overrides:
serviceStart in class org.apache.hadoop.service.CompositeService
- Throws:
Exception
serviceStop
protected void serviceStop()
throws Exception
- Overrides:
serviceStop in class org.apache.hadoop.service.CompositeService
- Throws:
Exception
startServer
protected void startServer()
throws Exception
- Throws:
Exception
stopServer
protected void stopServer()
throws Exception
- Throws:
Exception
createEmbeddedElectorService
protected EmbeddedElectorService createEmbeddedElectorService()
monitorHealth
public void monitorHealth()
throws IOException
- Specified by:
monitorHealth in interface org.apache.hadoop.ha.HAServiceProtocol
- Throws:
IOException
transitionToActive
public void transitionToActive(org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo reqInfo)
throws IOException
- Specified by:
transitionToActive in interface org.apache.hadoop.ha.HAServiceProtocol
- Throws:
IOException
transitionToStandby
public void transitionToStandby(org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo reqInfo)
throws IOException
- Specified by:
transitionToStandby in interface org.apache.hadoop.ha.HAServiceProtocol
- Throws:
IOException
getServiceStatus
public org.apache.hadoop.ha.HAServiceStatus getServiceStatus()
throws IOException
- Specified by:
getServiceStatus in interface org.apache.hadoop.ha.HAServiceProtocol
- Throws:
IOException
refreshQueues
public org.apache.hadoop.yarn.server.api.protocolrecords.RefreshQueuesResponse refreshQueues(org.apache.hadoop.yarn.server.api.protocolrecords.RefreshQueuesRequest request)
throws org.apache.hadoop.yarn.exceptions.YarnException,
org.apache.hadoop.ipc.StandbyException
- Specified by:
refreshQueues in interface org.apache.hadoop.yarn.server.api.ResourceManagerAdministrationProtocol
- Throws:
org.apache.hadoop.yarn.exceptions.YarnException
org.apache.hadoop.ipc.StandbyException
refreshNodes
public org.apache.hadoop.yarn.server.api.protocolrecords.RefreshNodesResponse refreshNodes(org.apache.hadoop.yarn.server.api.protocolrecords.RefreshNodesRequest request)
throws org.apache.hadoop.yarn.exceptions.YarnException,
org.apache.hadoop.ipc.StandbyException
- Specified by:
refreshNodes in interface org.apache.hadoop.yarn.server.api.ResourceManagerAdministrationProtocol
- Throws:
org.apache.hadoop.yarn.exceptions.YarnException
org.apache.hadoop.ipc.StandbyException
refreshSuperUserGroupsConfiguration
public org.apache.hadoop.yarn.server.api.protocolrecords.RefreshSuperUserGroupsConfigurationResponse refreshSuperUserGroupsConfiguration(org.apache.hadoop.yarn.server.api.protocolrecords.RefreshSuperUserGroupsConfigurationRequest request)
throws org.apache.hadoop.yarn.exceptions.YarnException,
IOException
- Specified by:
refreshSuperUserGroupsConfiguration in interface org.apache.hadoop.yarn.server.api.ResourceManagerAdministrationProtocol
- Throws:
org.apache.hadoop.yarn.exceptions.YarnException
IOException
refreshUserToGroupsMappings
public org.apache.hadoop.yarn.server.api.protocolrecords.RefreshUserToGroupsMappingsResponse refreshUserToGroupsMappings(org.apache.hadoop.yarn.server.api.protocolrecords.RefreshUserToGroupsMappingsRequest request)
throws org.apache.hadoop.yarn.exceptions.YarnException,
IOException
- Specified by:
refreshUserToGroupsMappings in interface org.apache.hadoop.yarn.server.api.ResourceManagerAdministrationProtocol
- Throws:
org.apache.hadoop.yarn.exceptions.YarnException
IOException
refreshAdminAcls
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
- Specified by:
refreshAdminAcls in interface org.apache.hadoop.yarn.server.api.ResourceManagerAdministrationProtocol
- Throws:
org.apache.hadoop.yarn.exceptions.YarnException
IOException
refreshServiceAcls
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
- Specified by:
refreshServiceAcls in interface org.apache.hadoop.yarn.server.api.ResourceManagerAdministrationProtocol
- Throws:
org.apache.hadoop.yarn.exceptions.YarnException
IOException
getGroupsForUser
public String[] getGroupsForUser(String user)
throws IOException
- Specified by:
getGroupsForUser in interface org.apache.hadoop.tools.GetUserMappingsProtocol
- Throws:
IOException
updateNodeResource
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
- Specified by:
updateNodeResource in interface org.apache.hadoop.yarn.server.api.ResourceManagerAdministrationProtocol
- Throws:
org.apache.hadoop.yarn.exceptions.YarnException
IOException
getAccessControlList
public org.apache.hadoop.security.authorize.AccessControlList getAccessControlList()
getServer
public org.apache.hadoop.ipc.RPC.Server getServer()
addToClusterNodeLabels
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
- Specified by:
addToClusterNodeLabels in interface org.apache.hadoop.yarn.server.api.ResourceManagerAdministrationProtocol
- Throws:
org.apache.hadoop.yarn.exceptions.YarnException
IOException
removeFromClusterNodeLabels
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
- Specified by:
removeFromClusterNodeLabels in interface org.apache.hadoop.yarn.server.api.ResourceManagerAdministrationProtocol
- Throws:
org.apache.hadoop.yarn.exceptions.YarnException
IOException
replaceLabelsOnNode
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
- Specified by:
replaceLabelsOnNode in interface org.apache.hadoop.yarn.server.api.ResourceManagerAdministrationProtocol
- Throws:
org.apache.hadoop.yarn.exceptions.YarnException
IOException
Copyright © 2014 Apache Software Foundation. All Rights Reserved.