Class HSAdminServer
java.lang.Object
org.apache.hadoop.service.AbstractService
org.apache.hadoop.mapreduce.v2.hs.server.HSAdminServer
- All Implemented Interfaces:
Closeable,AutoCloseable,org.apache.hadoop.mapreduce.v2.api.HSAdminProtocol,org.apache.hadoop.mapreduce.v2.api.HSAdminRefreshProtocol,org.apache.hadoop.security.RefreshUserMappingsProtocol,org.apache.hadoop.service.Service,org.apache.hadoop.tools.GetUserMappingsProtocol
@Private
public class HSAdminServer
extends org.apache.hadoop.service.AbstractService
implements org.apache.hadoop.mapreduce.v2.api.HSAdminProtocol
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.hadoop.service.Service
org.apache.hadoop.service.Service.STATE -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected InetSocketAddressprotected org.apache.hadoop.ipc.RPC.ServerThe RPC server that listens to requests from clientsFields inherited from interface org.apache.hadoop.tools.GetUserMappingsProtocol
versionIDFields inherited from interface org.apache.hadoop.security.RefreshUserMappingsProtocol
versionID -
Constructor Summary
ConstructorsConstructorDescriptionHSAdminServer(org.apache.hadoop.yarn.logaggregation.AggregatedLogDeletionService aggLogDelService, JobHistory jobHistoryService) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.hadoop.conf.ConfigurationString[]getGroupsForUser(String user) voidvoidvoidvoidvoidvoidvoidserviceInit(org.apache.hadoop.conf.Configuration conf) protected voidprotected voidMethods 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
-
Field Details
-
clientRpcServer
protected org.apache.hadoop.ipc.RPC.Server clientRpcServerThe RPC server that listens to requests from clients -
clientRpcAddress
-
-
Constructor Details
-
HSAdminServer
public HSAdminServer(org.apache.hadoop.yarn.logaggregation.AggregatedLogDeletionService aggLogDelService, JobHistory jobHistoryService)
-
-
Method Details
-
serviceInit
- Overrides:
serviceInitin classorg.apache.hadoop.service.AbstractService- Throws:
Exception
-
serviceStart
- Overrides:
serviceStartin classorg.apache.hadoop.service.AbstractService- Throws:
Exception
-
serviceStop
- Overrides:
serviceStopin classorg.apache.hadoop.service.AbstractService- Throws:
Exception
-
getGroupsForUser
- Specified by:
getGroupsForUserin interfaceorg.apache.hadoop.tools.GetUserMappingsProtocol- Throws:
IOException
-
refreshUserToGroupsMappings
- Specified by:
refreshUserToGroupsMappingsin interfaceorg.apache.hadoop.security.RefreshUserMappingsProtocol- Throws:
IOException
-
refreshSuperUserGroupsConfiguration
- Specified by:
refreshSuperUserGroupsConfigurationin interfaceorg.apache.hadoop.security.RefreshUserMappingsProtocol- Throws:
IOException
-
createConf
protected org.apache.hadoop.conf.Configuration createConf() -
refreshAdminAcls
- Specified by:
refreshAdminAclsin interfaceorg.apache.hadoop.mapreduce.v2.api.HSAdminRefreshProtocol- Throws:
IOException
-
refreshLoadedJobCache
- Specified by:
refreshLoadedJobCachein interfaceorg.apache.hadoop.mapreduce.v2.api.HSAdminRefreshProtocol- Throws:
IOException
-
refreshLogRetentionSettings
- Specified by:
refreshLogRetentionSettingsin interfaceorg.apache.hadoop.mapreduce.v2.api.HSAdminRefreshProtocol- Throws:
IOException
-
refreshJobRetentionSettings
- Specified by:
refreshJobRetentionSettingsin interfaceorg.apache.hadoop.mapreduce.v2.api.HSAdminRefreshProtocol- Throws:
IOException
-