org.apache.hadoop.mapreduce.v2.hs.server
Class HSAdminServer
java.lang.Object
org.apache.hadoop.service.AbstractService
org.apache.hadoop.mapreduce.v2.hs.server.HSAdminServer
- All Implemented Interfaces:
- Closeable, HSAdminProtocol, HSAdminRefreshProtocol, org.apache.hadoop.security.RefreshUserMappingsProtocol, org.apache.hadoop.service.Service, org.apache.hadoop.tools.GetUserMappingsProtocol
@InterfaceAudience.Private
public class HSAdminServer
- extends org.apache.hadoop.service.AbstractService
- implements HSAdminProtocol
| Nested classes/interfaces inherited from interface org.apache.hadoop.service.Service |
org.apache.hadoop.service.Service.STATE |
| Fields inherited from interface org.apache.hadoop.tools.GetUserMappingsProtocol |
versionID |
| Fields inherited from interface org.apache.hadoop.security.RefreshUserMappingsProtocol |
versionID |
|
Constructor Summary |
HSAdminServer(org.apache.hadoop.yarn.logaggregation.AggregatedLogDeletionService aggLogDelService,
JobHistory jobHistoryService)
|
| 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 |
clientRpcServer
protected org.apache.hadoop.ipc.RPC.Server clientRpcServer
- The RPC server that listens to requests from clients
clientRpcAddress
protected InetSocketAddress clientRpcAddress
HSAdminServer
public HSAdminServer(org.apache.hadoop.yarn.logaggregation.AggregatedLogDeletionService aggLogDelService,
JobHistory jobHistoryService)
serviceInit
public void serviceInit(org.apache.hadoop.conf.Configuration conf)
throws Exception
- Overrides:
serviceInit in class org.apache.hadoop.service.AbstractService
- Throws:
Exception
serviceStart
protected void serviceStart()
throws Exception
- Overrides:
serviceStart in class org.apache.hadoop.service.AbstractService
- Throws:
Exception
serviceStop
protected void serviceStop()
throws Exception
- Overrides:
serviceStop in class org.apache.hadoop.service.AbstractService
- Throws:
Exception
getGroupsForUser
public String[] getGroupsForUser(String user)
throws IOException
- Specified by:
getGroupsForUser in interface org.apache.hadoop.tools.GetUserMappingsProtocol
- Throws:
IOException
refreshUserToGroupsMappings
public void refreshUserToGroupsMappings()
throws IOException
- Specified by:
refreshUserToGroupsMappings in interface org.apache.hadoop.security.RefreshUserMappingsProtocol
- Throws:
IOException
refreshSuperUserGroupsConfiguration
public void refreshSuperUserGroupsConfiguration()
throws IOException
- Specified by:
refreshSuperUserGroupsConfiguration in interface org.apache.hadoop.security.RefreshUserMappingsProtocol
- Throws:
IOException
createConf
protected org.apache.hadoop.conf.Configuration createConf()
refreshAdminAcls
public void refreshAdminAcls()
throws IOException
- Description copied from interface:
HSAdminRefreshProtocol
- Refresh admin acls.
- Specified by:
refreshAdminAcls in interface HSAdminRefreshProtocol
- Throws:
IOException
refreshLoadedJobCache
public void refreshLoadedJobCache()
throws IOException
- Description copied from interface:
HSAdminRefreshProtocol
- Refresh loaded job cache
- Specified by:
refreshLoadedJobCache in interface HSAdminRefreshProtocol
- Throws:
IOException
refreshLogRetentionSettings
public void refreshLogRetentionSettings()
throws IOException
- Description copied from interface:
HSAdminRefreshProtocol
- Refresh log retention settings.
- Specified by:
refreshLogRetentionSettings in interface HSAdminRefreshProtocol
- Throws:
IOException
refreshJobRetentionSettings
public void refreshJobRetentionSettings()
throws IOException
- Description copied from interface:
HSAdminRefreshProtocol
- Refresh job retention settings.
- Specified by:
refreshJobRetentionSettings in interface HSAdminRefreshProtocol
- Throws:
IOException
Copyright © 2014 Apache Software Foundation. All Rights Reserved.