Class WebAppProxyServer
java.lang.Object
org.apache.hadoop.service.AbstractService
org.apache.hadoop.service.CompositeService
org.apache.hadoop.yarn.server.webproxy.WebAppProxyServer
- All Implemented Interfaces:
Closeable,AutoCloseable,org.apache.hadoop.service.Service
public class WebAppProxyServer
extends org.apache.hadoop.service.CompositeService
ProxyServer will sit in between the end user and AppMaster
web interfaces.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.service.CompositeService
org.apache.hadoop.service.CompositeService.CompositeServiceShutdownHookNested classes/interfaces inherited from interface org.apache.hadoop.service.Service
org.apache.hadoop.service.Service.STATE -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intPriority of the ResourceManager shutdown hook.Fields inherited from class org.apache.hadoop.service.CompositeService
STOP_ONLY_STARTED_SERVICES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoSecureLogin(org.apache.hadoop.conf.Configuration conf) Log in as the Kerberos principal designated for the proxystatic InetSocketAddressgetBindAddress(org.apache.hadoop.conf.Configuration conf) Retrieve PROXY bind address from configurationstatic voidprotected voidserviceInit(org.apache.hadoop.conf.Configuration conf) protected voidprotected voidprotected static WebAppProxyServerstartServer(org.apache.hadoop.conf.Configuration configuration) Start proxy server.Methods inherited from class org.apache.hadoop.service.CompositeService
addIfService, addService, getServices, removeServiceMethods 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
-
SHUTDOWN_HOOK_PRIORITY
public static final int SHUTDOWN_HOOK_PRIORITYPriority of the ResourceManager shutdown hook.- See Also:
-
-
Constructor Details
-
WebAppProxyServer
public WebAppProxyServer()
-
-
Method Details
-
serviceInit
- Overrides:
serviceInitin classorg.apache.hadoop.service.CompositeService- Throws:
Exception
-
serviceStart
- Overrides:
serviceStartin classorg.apache.hadoop.service.CompositeService- Throws:
Exception
-
serviceStop
- Overrides:
serviceStopin classorg.apache.hadoop.service.CompositeService- Throws:
Exception
-
doSecureLogin
Log in as the Kerberos principal designated for the proxy- Parameters:
conf- the configuration holding this information in it.- Throws:
IOException- on any error.
-
getBindAddress
Retrieve PROXY bind address from configuration- Parameters:
conf-- Returns:
- InetSocketAddress
-
main
-
startServer
protected static WebAppProxyServer startServer(org.apache.hadoop.conf.Configuration configuration) throws Exception Start proxy server.- Returns:
- proxy server instance.
- Throws:
Exception
-